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

◆ dispatch_indirect()

void MayaFlux::Core::VKComputePipeline::dispatch_indirect ( vk::CommandBuffer  cmd,
vk::Buffer  buffer,
vk::DeviceSize  offset = 0 
)

Dispatch compute shader indirectly from GPU buffer.

Parameters
cmdCommand buffer
bufferBuffer containing vk::DispatchIndirectCommand
offsetOffset in buffer

Allows GPU to determine dispatch size (e.g., after a compute culling pass).

Definition at line 403 of file VKComputePipeline.cpp.

407{
408 if (!m_pipeline) {
410 "Cannot dispatch invalid compute pipeline");
411 return;
412 }
413
414 if (!buffer) {
416 "Cannot dispatch with null indirect buffer");
417 return;
418 }
419
420 cmd.dispatchIndirect(buffer, offset);
421}
#define MF_ERROR(comp, ctx,...)
vk::CommandBuffer cmd
uint64_t offset
Definition Composite.cpp:10
std::shared_ptr< NetworkGeometryBuffer > buffer
@ GraphicsBackend
Graphics/visual rendering backend (Vulkan, OpenGL)
@ Core
Core engine, backend, subsystems.

References buffer, cmd, MayaFlux::Journal::Core, MayaFlux::Journal::GraphicsBackend, m_pipeline, MF_ERROR, and offset.