Enum vulkano::image::ComponentSwizzle
[−]
[src]
pub enum ComponentSwizzle { Identity, Zero, One, Red, Green, Blue, Alpha, }
Describes the value that an individual component must return when being accessed.
Variants
Identity
Returns the value that this component should normally have.
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
impl Copy for ComponentSwizzle
[src]
impl Clone for ComponentSwizzle
[src]
fn clone(&self) -> ComponentSwizzle
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ComponentSwizzle
[src]
impl PartialEq for ComponentSwizzle
[src]
fn eq(&self, __arg_0: &ComponentSwizzle) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for ComponentSwizzle
[src]
impl Default for ComponentSwizzle
[src]
fn default() -> ComponentSwizzle
Returns the "default value" for a type. Read more