pub enum Selection {
Mask(u8),
Swizzle([u8; 4]),
Scalar(u8),
None,
}Expand description
The components of a register an operand selects.
Variants§
Mask(u8)
A write mask: bit 0 is x, bit 3 is w.
Swizzle([u8; 4])
A four-component swizzle: for each result lane the source lane (0 x to 3 w) it reads.
Scalar(u8)
One source lane (0 x to 3 w).
None
No selection: the operand has no components (a sampler, a resource).
Trait Implementations§
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl Forget for Selection
impl Freeze for Selection
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnsafeUnpin for Selection
impl UnwindSafe for Selection
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