pub struct DispatchArgs { /* private fields */ }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.
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
pub fn get_x(&self) -> u32
pub fn get_mut_x(&mut self) -> &mut u32
pub fn set_x(&mut self, val: u32) -> &mut Self
pub fn get_y(&self) -> u32
pub fn get_mut_y(&mut self) -> &mut u32
pub fn set_y(&mut self, val: u32) -> &mut Self
pub fn get_z(&self) -> u32
pub fn get_mut_z(&mut self) -> &mut u32
pub fn set_z(&mut self, val: u32) -> &mut Self
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