Struct vulkano::image::ImageAspects
source · pub struct ImageAspects(/* private fields */);
Expand description
A set of ImageAspect
values.
Implementations§
source§impl ImageAspects
impl ImageAspects
sourcepub const COLOR: Self = _
pub const COLOR: Self = _
The single aspect of images with a color format, or the combined aspect of all planes of images with a multi-planar format.
sourcepub const DEPTH: Self = _
pub const DEPTH: Self = _
The single aspect of images with a depth format, or one of the two aspects of images with a combined depth/stencil format.
sourcepub const STENCIL: Self = _
pub const STENCIL: Self = _
The single aspect of images with a stencil format, or one of the two aspects of images with a combined depth/stencil format.
sourcepub const METADATA: Self = _
pub const METADATA: Self = _
An aspect used with sparse memory on some implementations, to hold implementation-defined metadata of an image.
sourcepub const PLANE_0: Self = _
pub const PLANE_0: Self = _
The first plane of an image with a multi-planar format, holding the green color component.
sourcepub const PLANE_1: Self = _
pub const PLANE_1: Self = _
The second plane of an image with a multi-planar format, holding the blue color component if the format has three planes, and a combination of blue and red if the format has two planes.
sourcepub const PLANE_2: Self = _
pub const PLANE_2: Self = _
The third plane of an image with a multi-planar format, holding the red color component.
sourcepub const MEMORY_PLANE_0: Self = _
pub const MEMORY_PLANE_0: Self = _
The first memory plane of images created through the ext_image_drm_format_modifier
extension.
sourcepub const MEMORY_PLANE_1: Self = _
pub const MEMORY_PLANE_1: Self = _
The second memory plane of images created through the ext_image_drm_format_modifier
extension.
sourcepub const MEMORY_PLANE_2: Self = _
pub const MEMORY_PLANE_2: Self = _
The third memory plane of images created through the ext_image_drm_format_modifier
extension.
sourcepub const MEMORY_PLANE_3: Self = _
pub const MEMORY_PLANE_3: Self = _
The fourth memory plane of images created through the ext_image_drm_format_modifier
extension.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ImageAspects
with none of the flags set.
sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
sourcepub fn contains_enum(self, val: ImageAspect) -> bool
pub fn contains_enum(self, val: ImageAspect) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for ImageAspects
impl BitAnd for ImageAspects
source§impl BitAndAssign for ImageAspects
impl BitAndAssign for ImageAspects
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for ImageAspects
impl BitOr for ImageAspects
source§impl BitOrAssign for ImageAspects
impl BitOrAssign for ImageAspects
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for ImageAspects
impl BitXor for ImageAspects
source§impl BitXorAssign for ImageAspects
impl BitXorAssign for ImageAspects
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for ImageAspects
impl Clone for ImageAspects
source§fn clone(&self) -> ImageAspects
fn clone(&self) -> ImageAspects
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageAspects
impl Debug for ImageAspects
source§impl Default for ImageAspects
impl Default for ImageAspects
source§impl From<ImageAspect> for ImageAspects
impl From<ImageAspect> for ImageAspects
source§fn from(val: ImageAspect) -> Self
fn from(val: ImageAspect) -> Self
source§impl From<ImageAspectFlags> for ImageAspects
impl From<ImageAspectFlags> for ImageAspects
source§fn from(val: ImageAspectFlags) -> Self
fn from(val: ImageAspectFlags) -> Self
source§impl From<ImageAspects> for ImageAspectFlags
impl From<ImageAspects> for ImageAspectFlags
source§fn from(val: ImageAspects) -> Self
fn from(val: ImageAspects) -> Self
source§impl FromIterator<ImageAspect> for ImageAspects
impl FromIterator<ImageAspect> for ImageAspects
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ImageAspect>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ImageAspect>,
source§impl Hash for ImageAspects
impl Hash for ImageAspects
source§impl IntoIterator for ImageAspects
impl IntoIterator for ImageAspects
§type Item = ImageAspect
type Item = ImageAspect
§type IntoIter = Flatten<IntoIter<Option<<ImageAspects as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ImageAspects as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for ImageAspects
impl PartialEq for ImageAspects
source§fn eq(&self, other: &ImageAspects) -> bool
fn eq(&self, other: &ImageAspects) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ImageAspects
impl Sub for ImageAspects
source§impl SubAssign for ImageAspects
impl SubAssign for ImageAspects
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more