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

@ -28,7 +28,7 @@ public:
*/
Algorithm(std::shared_ptr<vk::Device> device,
std::shared_ptr<vk::CommandBuffer> commandBuffer,
const std::vector<float>& specializationConstants = {});
const Constants& specializationConstants = {});
/**
* Initialiser for the shader data provided to the algorithm as well as
@ -80,7 +80,7 @@ private:
bool mFreePipeline = false;
// -------------- ALWAYS OWNED RESOURCES
std::vector<float> mSpecializationConstants;
Constants mSpecializationConstants;
// Create util functions
void createShaderModule(const std::vector<char>& shaderFileData);