pub struct DispatchArgs {
pub x: u32,
pub y: u32,
pub z: u32,
}Expand description
The three workgroup counts of a compute dispatch, as one value.
dispatch(x, y, z) today takes these as three positional numbers
whose order is easy to transpose, since x is the fastest-varying
axis and the natural reading order of a 3D problem is z, y, x.
Fields§
§x: u32The workgroups dispatched along the x axis.
y: u32The workgroups dispatched along the y axis.
z: u32The workgroups dispatched along the z axis.
Implementations§
Source§impl DispatchArgs
Named constructors for the compute-argument struct.
impl DispatchArgs
Named constructors for the compute-argument struct.
Source§impl DispatchArgs
impl DispatchArgs
Source§impl DispatchArgs
impl DispatchArgs
Trait Implementations§
Source§impl Clone for DispatchArgs
impl Clone for DispatchArgs
impl Copy for DispatchArgs
Auto Trait Implementations§
impl Freeze for DispatchArgs
impl RefUnwindSafe for DispatchArgs
impl Send for DispatchArgs
impl Sync for DispatchArgs
impl Unpin for DispatchArgs
impl UnsafeUnpin for DispatchArgs
impl UnwindSafe for DispatchArgs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more