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

◆ dispatch_indirect()

void MayaFlux::Portal::Graphics::ComputePress::dispatch_indirect ( CommandBufferID  cmd_id,
vk::Buffer  indirect_buffer,
vk::DeviceSize  offset = 0 
)

Dispatch compute workgroups indirectly.

Definition at line 331 of file ComputePress.cpp.

335{
336 auto cmd = m_shader_foundry->get_command_buffer(cmd_id);
337 if (!cmd) {
339 "Invalid command buffer ID: {}", cmd_id);
340 return;
341 }
342
343 cmd.dispatchIndirect(indirect_buffer, offset);
344
346 "Dispatched compute indirect from buffer");
347}
#define MF_ERROR(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
vk::CommandBuffer get_command_buffer(CommandBufferID cmd_id)
Get Vulkan command buffer handle from CommandBufferID.
@ GPUCompute
GPU compute operations (shaders, GPGPU tasks)
@ Portal
High-level user-facing API layer.

References MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), MayaFlux::Journal::GPUCompute, m_shader_foundry, MF_DEBUG, MF_ERROR, and MayaFlux::Journal::Portal.

+ Here is the call graph for this function: