MayaFlux 1.0.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 378 of file ComputePress.cpp.

382{
383 if (!is_initialized()) {
384 return;
385 }
386
388 if (!cmd) {
390 "Invalid command buffer ID: {}", cmd_id);
391 return;
392 }
393
394 cmd.dispatchIndirect(indirect_buffer, offset);
395
397 "Dispatched compute indirect from buffer");
398}
#define MF_ERROR(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
vk::CommandBuffer cmd
uint64_t offset
Definition Composite.cpp:10
bool is_initialized() const
Check if ComputePress is initialized.
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 cmd, MayaFlux::Portal::Graphics::ShaderFoundry::get_command_buffer(), MayaFlux::Journal::GPUCompute, is_initialized(), m_shader_foundry, MF_DEBUG, MF_ERROR, offset, and MayaFlux::Journal::Portal.

Referenced by record_sequence().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: