Enum vulkano::image::ComponentSwizzle
source · 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.
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 PartialEq<ComponentSwizzle> for ComponentSwizzle
impl PartialEq<ComponentSwizzle> for ComponentSwizzle
sourcefn eq(&self, other: &ComponentSwizzle) -> bool
fn eq(&self, other: &ComponentSwizzle) -> bool
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.