Struct vulkano::image::ImageAspect[][src]

pub struct ImageAspect {
    pub color: bool,
    pub depth: bool,
    pub stencil: bool,
    pub metadata: bool,
    pub plane0: bool,
    pub plane1: bool,
    pub plane2: bool,
    pub memory_plane0: bool,
    pub memory_plane1: bool,
    pub memory_plane2: bool,
}

Describes how an aspect of the image that be used to query Vulkan. This is not just a suggestion. Check out VkImageAspectFlagBits in the Vulkan spec.

If you specify an aspect of the image that doesn’t exist (for example, depth for a YUV image), a panic will happen.

Fields

color: booldepth: boolstencil: boolmetadata: boolplane0: boolplane1: boolplane2: boolmemory_plane0: boolmemory_plane1: boolmemory_plane2: bool

Implementations

impl ImageAspect[src]

pub fn none() -> ImageAspect[src]

Builds a ImageAspect with all values set to false. Useful as a default value.

Example

use vulkano::image::ImageAspect as ImageAspect;

let _aspect = ImageAspect {
    color: true,
    depth: true,
    .. ImageAspect::none()
};

Trait Implementations

impl BitOr<ImageAspect> for ImageAspect[src]

type Output = Self

The resulting type after applying the | operator.

impl Clone for ImageAspect[src]

impl Copy for ImageAspect[src]

impl Debug for ImageAspect[src]

impl Eq for ImageAspect[src]

impl Hash for ImageAspect[src]

impl PartialEq<ImageAspect> for ImageAspect[src]

impl StructuralEq for ImageAspect[src]

impl StructuralPartialEq for ImageAspect[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.