pub struct SpecialRegisters {
pub thread_id: [u32; 3],
pub wave_id: u32,
pub lane_id: u32,
pub workgroup_id: [u32; 3],
pub workgroup_size: [u32; 3],
pub grid_size: [u32; 3],
pub wave_width: u32,
pub num_waves: u32,
}Fields§
§thread_id: [u32; 3]§wave_id: u32§lane_id: u32§workgroup_id: [u32; 3]§workgroup_size: [u32; 3]§grid_size: [u32; 3]§wave_width: u32§num_waves: u32Implementations§
Trait Implementations§
Source§impl Clone for SpecialRegisters
impl Clone for SpecialRegisters
Source§fn clone(&self) -> SpecialRegisters
fn clone(&self) -> SpecialRegisters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpecialRegisters
impl Debug for SpecialRegisters
Source§impl Default for SpecialRegisters
impl Default for SpecialRegisters
Source§fn default() -> SpecialRegisters
fn default() -> SpecialRegisters
Returns the “default value” for a type. Read more
impl Copy for SpecialRegisters
Auto Trait Implementations§
impl Freeze for SpecialRegisters
impl RefUnwindSafe for SpecialRegisters
impl Send for SpecialRegisters
impl Sync for SpecialRegisters
impl Unpin for SpecialRegisters
impl UnsafeUnpin for SpecialRegisters
impl UnwindSafe for SpecialRegisters
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