pub struct Swizzle(pub Component, pub Component, pub Component, pub Component);
Expand description
Channel swizzle configuration for the resource views.
This specifies a “swizzle” operation which remaps the various
channels of a format into a different order. For example,
Swizzle(Component::B, Component::G, Component::R, Component::A)
will swap RGBA
formats into BGRA
formats and back.
Note: It’s not currently mirrored at compile-time, thus providing less safety and convenience.
Tuple Fields§
§0: Component
§1: Component
§2: Component
§3: Component
Implementations§
Trait Implementations§
Source§impl Ord for Swizzle
impl Ord for Swizzle
Source§impl PartialOrd for Swizzle
impl PartialOrd for Swizzle
impl Copy for Swizzle
impl Eq for Swizzle
impl StructuralPartialEq for Swizzle
Auto Trait Implementations§
impl Freeze for Swizzle
impl RefUnwindSafe for Swizzle
impl Send for Swizzle
impl Sync for Swizzle
impl Unpin for Swizzle
impl UnwindSafe for Swizzle
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