Updated to add typedef on Constants and Workgroup

This commit is contained in:
Alejandro Saucedo 2021-02-14 07:29:50 +00:00
parent bf86daa3ef
commit 9adfa34fd3
8 changed files with 25 additions and 19 deletions

View file

@ -10,6 +10,12 @@ static const char* KOMPUTE_LOG_TAG = "KomputeLog";
#include <vulkan/vulkan.hpp>
// Typedefs to simplify interaction with core types
namespace kp {
typedef std::array<uint32_t, 3> Workgroup;
typedef std::vector<float> Constants;
}
// Must be after vulkan is included
#ifndef KOMPUTE_VK_API_VERSION
#ifndef KOMPUTE_VK_API_MAJOR_VERSION