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

395{
396 return {
397 calculate_workgroups(width, workgroup_x),
398 calculate_workgroups(height, workgroup_y),
399 calculate_workgroups(depth, workgroup_z)
400 };
401}
uint32_t width
uint32_t height
uint32_t depth
static uint32_t calculate_workgroups(uint32_t element_count, uint32_t workgroup_size)
Calculate number of workgroups needed.

References calculate_workgroups(), depth, height, and width.

+ Here is the call graph for this function: