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
nullptr
);
// TODO: Set Compute Pipeline Layout
vk::PipelineLayout vkPipelineLayout{}; // TODO: Set params
const size_t matrixPushConstantSize = shaderProgram.getPushConstantSize();
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
vk::Pipeline vkPipeline{};
......
......@@ -24,7 +24,6 @@ namespace vkcv
vk::Result createShaderModule(vk::ShaderModule &module, const ShaderProgram &shaderProgram, ShaderStage stage);
public:
PipelineManager() = delete; // no default ctor
explicit PipelineManager(vk::Device device) noexcept; // ctor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment