Struct vulkano::render_pass::ResolveModes
source · pub struct ResolveModes(/* private fields */);
Expand description
A set of ResolveMode
values.
Implementations§
source§impl ResolveModes
impl ResolveModes
sourcepub const SAMPLE_ZERO: Self = _
pub const SAMPLE_ZERO: Self = _
The resolved sample is taken from sample number zero, the other samples are ignored.
This mode is supported for depth and stencil formats, and for color images with an integer format.
sourcepub const AVERAGE: Self = _
pub const AVERAGE: Self = _
The resolved sample is calculated from the average of the samples.
This mode is supported for depth formats, and for color images with a non-integer format.
sourcepub const MIN: Self = _
pub const MIN: Self = _
The resolved sample is calculated from the minimum of the samples.
This mode is supported for depth and stencil formats only.
sourcepub const MAX: Self = _
pub const MAX: Self = _
The resolved sample is calculated from the maximum of the samples.
This mode is supported for depth and stencil formats only.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a ResolveModes
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: ResolveMode) -> bool
pub fn contains_enum(self, val: ResolveMode) -> bool
Returns whether self
contains the flag corresponding to val
.
Trait Implementations§
source§impl BitAnd for ResolveModes
impl BitAnd for ResolveModes
source§impl BitAndAssign for ResolveModes
impl BitAndAssign for ResolveModes
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOr for ResolveModes
impl BitOr for ResolveModes
source§impl BitOrAssign for ResolveModes
impl BitOrAssign for ResolveModes
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXor for ResolveModes
impl BitXor for ResolveModes
source§impl BitXorAssign for ResolveModes
impl BitXorAssign for ResolveModes
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for ResolveModes
impl Clone for ResolveModes
source§fn clone(&self) -> ResolveModes
fn clone(&self) -> ResolveModes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResolveModes
impl Debug for ResolveModes
source§impl Default for ResolveModes
impl Default for ResolveModes
source§impl From<ResolveMode> for ResolveModes
impl From<ResolveMode> for ResolveModes
source§fn from(val: ResolveMode) -> Self
fn from(val: ResolveMode) -> Self
source§impl From<ResolveModeFlags> for ResolveModes
impl From<ResolveModeFlags> for ResolveModes
source§fn from(val: ResolveModeFlags) -> Self
fn from(val: ResolveModeFlags) -> Self
source§impl From<ResolveModes> for ResolveModeFlags
impl From<ResolveModes> for ResolveModeFlags
source§fn from(val: ResolveModes) -> Self
fn from(val: ResolveModes) -> Self
source§impl FromIterator<ResolveMode> for ResolveModes
impl FromIterator<ResolveMode> for ResolveModes
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = ResolveMode>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = ResolveMode>,
source§impl Hash for ResolveModes
impl Hash for ResolveModes
source§impl IntoIterator for ResolveModes
impl IntoIterator for ResolveModes
§type Item = ResolveMode
type Item = ResolveMode
§type IntoIter = Flatten<IntoIter<Option<<ResolveModes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
type IntoIter = Flatten<IntoIter<Option<<ResolveModes as IntoIterator>::Item>, { $ty_bitflags::all_raw().count_ones() as usize }>>
source§impl PartialEq for ResolveModes
impl PartialEq for ResolveModes
source§fn eq(&self, other: &ResolveModes) -> bool
fn eq(&self, other: &ResolveModes) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Sub for ResolveModes
impl Sub for ResolveModes
source§impl SubAssign for ResolveModes
impl SubAssign for ResolveModes
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more