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

◆ calculate_dispatch_3d()

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

Calculate 3D dispatch size.

Definition at line 388 of file VKComputePipeline.cpp.

391{
392 return {
393 calculate_workgroups(width, workgroup_x),
394 calculate_workgroups(height, workgroup_y),
395 calculate_workgroups(depth, workgroup_z)
396 };
397}
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: