Skip to content
Snippets Groups Projects
Commit 2ebaeebb authored by Mark Oliver Mints's avatar Mark Oliver Mints
Browse files

[#65][Add] Pipeline Layout for Compute Shadetr

parent bfe7c164
No related branches found
No related tags found
1 merge request!58Resolve "Compute Pipeline"
Pipeline #25509 passed
...@@ -330,8 +330,20 @@ namespace vkcv ...@@ -330,8 +330,20 @@ namespace vkcv
nullptr nullptr
); );
// TODO: Set Compute Pipeline Layout const size_t matrixPushConstantSize = shaderProgram.getPushConstantSize();
vk::PipelineLayout vkPipelineLayout{}; // TODO: Set params const vk::PushConstantRange pushConstantRange(vk::ShaderStageFlagBits::eAll, 0, matrixPushConstantSize);
vk::PipelineLayoutCreateInfo pipelineLayoutCreateInfo( // TODO: Check this. I'm not sure if this is correct
{},
nullptr,
(pushConstantRange));
vk::PipelineLayout vkPipelineLayout{};
if (m_Device.createPipelineLayout(&pipelineLayoutCreateInfo, nullptr, &vkPipelineLayout) != vk::Result::eSuccess)
{
m_Device.destroy(computeModule);
return PipelineHandle();
}
// TODO: Create Compute Pipeline // TODO: Create Compute Pipeline
vk::Pipeline vkPipeline{}; vk::Pipeline vkPipeline{};
......
...@@ -24,7 +24,6 @@ namespace vkcv ...@@ -24,7 +24,6 @@ namespace vkcv
vk::Result createShaderModule(vk::ShaderModule &module, const ShaderProgram &shaderProgram, ShaderStage stage); vk::Result createShaderModule(vk::ShaderModule &module, const ShaderProgram &shaderProgram, ShaderStage stage);
public: public:
PipelineManager() = delete; // no default ctor PipelineManager() = delete; // no default ctor
explicit PipelineManager(vk::Device device) noexcept; // ctor explicit PipelineManager(vk::Device device) noexcept; // ctor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment