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

◆ dispatch()

void MayaFlux::Portal::Graphics::ComputePress::dispatch ( CommandBufferID  cmd_id,
uint32_t  x,
uint32_t  y,
uint32_t  z 
)

Dispatch compute workgroups.

Definition at line 359 of file ComputePress.cpp.

360{
361 if (!is_initialized()) {
362 return;
363 }
364
366 if (!cmd) {
368 "Invalid command buffer ID: {}", cmd_id);
369 return;
370 }
371
372 cmd.dispatch(x, y, z);
373
375 "Dispatched compute: {}x{}x{} workgroups", x, y, z);
376}
#define MF_ERROR(comp, ctx,...)
#define MF_DEBUG(comp, ctx,...)
vk::CommandBuffer cmd
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, and MayaFlux::Journal::Portal.

Referenced by record_sequence().

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