pub fn compute_num_workgroups(total_items: u32, workgroup_size: u32) -> u32
Compute the number of workgroups needed for a 1D dispatch.