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

◆ calculate_dispatch_2d()

std::array< uint32_t, 3 > MayaFlux::Core::VKComputePipeline::calculate_dispatch_2d ( uint32_t  width,
uint32_t  height,
uint32_t  workgroup_x,
uint32_t  workgroup_y 
)
static

Calculate 2D dispatch size.

Definition at line 377 of file VKComputePipeline.cpp.

380{
381 return {
382 calculate_workgroups(width, workgroup_x),
383 calculate_workgroups(height, workgroup_y),
384 1
385 };
386}
static uint32_t calculate_workgroups(uint32_t element_count, uint32_t workgroup_size)
Calculate number of workgroups needed.

References calculate_workgroups().

+ Here is the call graph for this function: