Enum wgpu::naga::SwizzleComponent
source · #[repr(u8)]pub enum SwizzleComponent {
X = 0,
Y = 1,
Z = 2,
W = 3,
}
Expand description
Component selection for a vector swizzle.
Variants§
Implementations§
source§impl SwizzleComponent
impl SwizzleComponent
pub const XYZW: [SwizzleComponent; 4] = _
pub const fn index(&self) -> u32
pub const fn from_index(idx: u32) -> SwizzleComponent
Trait Implementations§
source§impl Clone for SwizzleComponent
impl Clone for SwizzleComponent
source§fn clone(&self) -> SwizzleComponent
fn clone(&self) -> SwizzleComponent
Returns a copy 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 SwizzleComponent
impl Debug for SwizzleComponent
source§impl PartialEq for SwizzleComponent
impl PartialEq for SwizzleComponent
source§fn eq(&self, other: &SwizzleComponent) -> bool
fn eq(&self, other: &SwizzleComponent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SwizzleComponent
impl PartialOrd for SwizzleComponent
source§fn partial_cmp(&self, other: &SwizzleComponent) -> Option<Ordering>
fn partial_cmp(&self, other: &SwizzleComponent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SwizzleComponent
impl StructuralPartialEq for SwizzleComponent
Auto Trait Implementations§
impl RefUnwindSafe for SwizzleComponent
impl Send for SwizzleComponent
impl Sync for SwizzleComponent
impl Unpin for SwizzleComponent
impl UnwindSafe for SwizzleComponent
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