pub fn workgroup_count_2d(
width: u32,
height: u32,
wg_x: u32,
wg_y: u32,
) -> (u32, u32)Expand description
Compute the ceiling-division workgroup counts for a 2-D dispatch.
Returns (ceil(width / wg_x), ceil(height / wg_y)).
ยงExamples
use oxigdal_gpu::workgroup_count_2d;
assert_eq!(workgroup_count_2d(128, 64, 16, 8), (8, 8));