|
MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Core::VKComputePipeline::dispatch_1d | ( | vk::CommandBuffer | cmd, |
| uint32_t | element_count, | ||
| uint32_t | local_size_x | ||
| ) | const |
Dispatch compute workgroups with automatic calculation.
| cmd | Command buffer |
| element_count | Total number of elements to process |
| local_size_x | Workgroup size (from shader local_size_x) |
Convenience function that calculates workgroup count automatically. Rounds up to ensure all elements are processed.
Example: // Shader: layout(local_size_x = 256) in; pipeline.dispatch_1d(cmd, 1'000'000, 256); // Internally: dispatch(cmd, ceil(1M / 256), 1, 1)
Definition at line 283 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: