Enum vulkano::sampler::ComponentSwizzle
source · [−]#[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
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 more
sourceimpl 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
Performs the conversion.
sourceimpl PartialEq<ComponentSwizzle> for ComponentSwizzle
impl PartialEq<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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more