MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ bind()

void MayaFlux::Core::VKComputePipeline::bind ( vk::CommandBuffer  cmd) const

Bind pipeline to command buffer.

Parameters
cmdCommand buffer

Makes this pipeline the active compute pipeline for subsequent dispatch commands. Must be called before bind_descriptor_sets() or dispatch().

Example: pipeline.bind(cmd); pipeline.bind_descriptor_sets(cmd, {desc_set}); pipeline.dispatch(cmd, 256, 1, 1);

Definition at line 182 of file VKComputePipeline.cpp.

183{
184 if (!m_pipeline) {
186 "Cannot bind invalid compute pipeline");
187 return;
188 }
189
190 cmd.bindPipeline(vk::PipelineBindPoint::eCompute, m_pipeline);
191}
#define MF_ERROR(comp, ctx,...)
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, m_pipeline, and MF_ERROR.