[−][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 Clone for Swizzle
[src]
impl Copy for Swizzle
[src]
impl Debug for Swizzle
[src]
impl Default for Swizzle
[src]
impl Eq for Swizzle
[src]
impl PartialEq<Swizzle> for Swizzle
[src]
impl StructuralEq for Swizzle
[src]
impl StructuralPartialEq for Swizzle
[src]
Auto Trait Implementations
impl RefUnwindSafe for Swizzle
[src]
impl Send for Swizzle
[src]
impl Sync for Swizzle
[src]
impl Unpin for Swizzle
[src]
impl UnwindSafe for Swizzle
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Content for T
[src]
pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>
[src]
pub fn is_size_suitable(usize) -> bool
[src]
pub fn indiv_size() -> usize
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut 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.
pub 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>,