|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Core::VKComputePipeline::dispatch_2d | ( | vk::CommandBuffer | cmd, |
| uint32_t | width_elements, | ||
| uint32_t | height_elements, | ||
| uint32_t | local_size_x, | ||
| uint32_t | local_size_y | ||
| ) | const |
Dispatch compute workgroups in 2D with automatic calculation.
| cmd | Command buffer |
| width_elements | Width in elements |
| height_elements | Height in elements |
| local_size_x | Workgroup width (shader local_size_x) |
| local_size_y | Workgroup height (shader local_size_y) |
Convenience for 2D operations (image processing, etc.)
Example: // Process 1920x1080 image with 16x16 workgroups pipeline.dispatch_2d(cmd, 1920, 1080, 16, 16);
Definition at line 298 of file VKComputePipeline.cpp.
References calculate_workgroups(), MayaFlux::Journal::Core, dispatch(), MayaFlux::Journal::GraphicsBackend, and MF_ERROR.
Here is the call graph for this function: