Enum vulkano::image::sampler::ComponentSwizzle
source · #[non_exhaustive]#[repr(i32)]pub enum ComponentSwizzle {
Identity = 0,
Zero = 1,
One = 2,
Red = 3,
Green = 4,
Blue = 5,
Alpha = 6,
}
Expand description
Describes the value that an individual component must return when being accessed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Identity = 0
Returns the value that this component should normally have.
This is the Default
value.
Zero = 1
Always return zero.
One = 2
Always return one.
Red = 3
Returns the value of the first component.
Green = 4
Returns the value of the second component.
Blue = 5
Returns the value of the third component.
Alpha = 6
Returns the value of the fourth component.
Trait Implementations§
source§impl Clone for ComponentSwizzle
impl Clone for ComponentSwizzle
source§fn clone(&self) -> ComponentSwizzle
fn clone(&self) -> ComponentSwizzle
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 ComponentSwizzle
impl Debug for ComponentSwizzle
source§impl Default for ComponentSwizzle
impl Default for ComponentSwizzle
source§fn default() -> ComponentSwizzle
fn default() -> ComponentSwizzle
Returns the “default value” for a type. Read more
source§impl From<ComponentSwizzle> for ComponentSwizzle
impl From<ComponentSwizzle> for ComponentSwizzle
source§fn from(val: ComponentSwizzle) -> Self
fn from(val: ComponentSwizzle) -> Self
Converts to this type from the input type.
source§impl Hash for ComponentSwizzle
impl Hash for ComponentSwizzle
source§impl PartialEq for ComponentSwizzle
impl PartialEq for ComponentSwizzle
source§fn eq(&self, other: &ComponentSwizzle) -> bool
fn eq(&self, other: &ComponentSwizzle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ComponentSwizzle> for ComponentSwizzle
impl TryFrom<ComponentSwizzle> for ComponentSwizzle
impl Copy for ComponentSwizzle
impl Eq for ComponentSwizzle
impl StructuralEq for ComponentSwizzle
impl StructuralPartialEq for ComponentSwizzle
Auto Trait Implementations§
impl RefUnwindSafe for ComponentSwizzle
impl Send for ComponentSwizzle
impl Sync for ComponentSwizzle
impl Unpin for ComponentSwizzle
impl UnwindSafe for ComponentSwizzle
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