[−][src]Struct vulkano::image::Swizzle
Specifies how the components of an image must be swizzled.
When creating an image view, it is possible to ask the implementation to modify the value returned when accessing a given component from within a shader.
If all the members are Identity
, then the view is said to have identity swizzling. This is
what the Default
trait implementation of this struct returns.
Views that don't have identity swizzling may not be supported for some operations. For example
attaching a view to a framebuffer is only possible if the view is identity-swizzled.
Fields
r: ComponentSwizzle
First component.
g: ComponentSwizzle
Second component.
b: ComponentSwizzle
Third component.
a: ComponentSwizzle
Fourth component.
Trait Implementations
impl Eq for Swizzle
[src]
impl Default for Swizzle
[src]
impl Clone for Swizzle
[src]
impl PartialEq<Swizzle> for Swizzle
[src]
impl Copy for Swizzle
[src]
impl Debug for Swizzle
[src]
Auto Trait Implementations
impl Send for Swizzle
impl Unpin for Swizzle
impl Sync for Swizzle
impl UnwindSafe for Swizzle
impl RefUnwindSafe for Swizzle
Blanket Implementations
impl<T> Content for T
[src]
fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
fn is_size_suitable(usize) -> bool
[src]
fn indiv_size() -> usize
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,