MayaFlux 1.0.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 381 of file VKComputePipeline.cpp.

384{
385 return {
386 calculate_workgroups(width, workgroup_x),
387 calculate_workgroups(height, workgroup_y),
388 1
389 };
390}
uint32_t width
uint32_t height
static uint32_t calculate_workgroups(uint32_t element_count, uint32_t workgroup_size)
Calculate number of workgroups needed.

References calculate_workgroups(), height, and width.

+ Here is the call graph for this function: