pub fn dispatcher_flat(len: u64, wg_size: WorkgroupSize) -> [u32; 3]Expand description
For dispatching on a grid to ensure at least “len” invocations. No guarantuees are made about the layout of the workgrid. Tries to minimize invocations above “len”. The shader should calculate its own flat index to ensure consitency.
Useful for large dispatches that can’t fit into a single dimension due to hardware limits.