pub fn args_for_elements(
total: u32,
workgroup_size: u32,
) -> DispatchIndirectArgsExpand description
Build DispatchIndirectArgs for a 1-D dispatch over total elements
with the given workgroup_size.
Y and Z are set to 1.
ยงExamples
use oxigdal_gpu::{args_for_elements, DispatchIndirectArgs};
let args = args_for_elements(128, 64);
assert_eq!(args, DispatchIndirectArgs { x: 2, y: 1, z: 1 });