Enum vulkano::sampler::ComponentSwizzle
source · [−]#[non_exhaustive]
#[repr(i32)]
pub enum ComponentSwizzle {
Identity,
Zero,
One,
Red,
Green,
Blue,
Alpha,
}
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
Returns the value that this component should normally have.
This is the Default
value.
Zero
Always return zero.
One
Always return one.
Red
Returns the value of the first component.
Green
Returns the value of the second component.
Blue
Returns the value of the third component.
Alpha
Returns the value of the fourth component.
Trait Implementations
sourceimpl Clone for ComponentSwizzle
impl Clone for ComponentSwizzle
sourcefn clone(&self) -> ComponentSwizzle
fn clone(&self) -> ComponentSwizzle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ComponentSwizzle
impl Debug for ComponentSwizzle
sourceimpl Default for ComponentSwizzle
impl Default for ComponentSwizzle
sourcefn default() -> ComponentSwizzle
fn default() -> ComponentSwizzle
Returns the “default value” for a type. Read more
sourceimpl From<ComponentSwizzle> for ComponentSwizzle
impl From<ComponentSwizzle> for ComponentSwizzle
sourcefn from(val: ComponentSwizzle) -> Self
fn from(val: ComponentSwizzle) -> Self
Converts to this type from the input type.
sourceimpl Hash for ComponentSwizzle
impl Hash for ComponentSwizzle
sourceimpl PartialEq<ComponentSwizzle> for ComponentSwizzle
impl PartialEq<ComponentSwizzle> for ComponentSwizzle
sourcefn eq(&self, other: &ComponentSwizzle) -> bool
fn eq(&self, other: &ComponentSwizzle) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more