|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Core::VKComputePipeline::bind_descriptor_sets | ( | vk::CommandBuffer | cmd, |
| const std::vector< vk::DescriptorSet > & | descriptor_sets, | ||
| uint32_t | first_set = 0, |
||
| const std::vector< uint32_t > & | dynamic_offsets = {} |
||
| ) | const |
Bind descriptor sets to pipeline.
| cmd | Command buffer |
| descriptor_sets | Vector of descriptor sets to bind |
| first_set | First set index (default 0 for set=0) |
| dynamic_offsets | Optional dynamic offsets for dynamic buffers |
Binds descriptor sets for use by the shader. Set indices must match the layout(set=X) declarations in the shader.
Example: // Shader has: layout(set=0, binding=0) buffer Data { ... }; pipeline.bind_descriptor_sets(cmd, {desc_set_0});
// Multiple sets: layout(set=0, ...) and layout(set=1, ...) pipeline.bind_descriptor_sets(cmd, {desc_set_0, desc_set_1});
Definition at line 193 of file VKComputePipeline.cpp.
References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, m_layout, MF_ERROR, and MF_WARN.