Enum vulkano::image::ImageAspect
source · [−]#[non_exhaustive]
#[repr(u32)]
pub enum ImageAspect {
Color,
Depth,
Stencil,
Metadata,
Plane0,
Plane1,
Plane2,
MemoryPlane0,
MemoryPlane1,
MemoryPlane2,
}
Expand description
An individual data type within an image.
Most images have only the Color
aspect, but some may have several.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Color
Depth
Stencil
Metadata
Plane0
Plane1
Plane2
MemoryPlane0
MemoryPlane1
MemoryPlane2
Trait Implementations
sourceimpl Clone for ImageAspect
impl Clone for ImageAspect
sourcefn clone(&self) -> ImageAspect
fn clone(&self) -> ImageAspect
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 ImageAspect
impl Debug for ImageAspect
sourceimpl From<ImageAspect> for ImageAspectFlags
impl From<ImageAspect> for ImageAspectFlags
sourcefn from(val: ImageAspect) -> Self
fn from(val: ImageAspect) -> Self
Converts to this type from the input type.
sourceimpl From<ImageAspect> for ImageAspects
impl From<ImageAspect> for ImageAspects
sourcefn from(aspect: ImageAspect) -> Self
fn from(aspect: ImageAspect) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<ImageAspect> for ImageAspects
impl FromIterator<ImageAspect> for ImageAspects
sourcefn from_iter<T: IntoIterator<Item = ImageAspect>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = ImageAspect>>(iter: T) -> Self
Creates a value from an iterator. Read more
sourceimpl Hash for ImageAspect
impl Hash for ImageAspect
sourceimpl PartialEq<ImageAspect> for ImageAspect
impl PartialEq<ImageAspect> for ImageAspect
sourcefn eq(&self, other: &ImageAspect) -> bool
fn eq(&self, other: &ImageAspect) -> bool
sourceimpl TryFrom<ImageAspectFlags> for ImageAspect
impl TryFrom<ImageAspectFlags> for ImageAspect
impl Copy for ImageAspect
impl Eq for ImageAspect
impl StructuralEq for ImageAspect
impl StructuralPartialEq for ImageAspect
Auto Trait Implementations
impl RefUnwindSafe for ImageAspect
impl Send for ImageAspect
impl Sync for ImageAspect
impl Unpin for ImageAspect
impl UnwindSafe for ImageAspect
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