Enum vulkano::render_pass::ResolveMode
source · #[non_exhaustive]#[repr(u32)]pub enum ResolveMode {
SampleZero = 1,
Average = 2,
Min = 4,
Max = 8,
}
Expand description
Possible resolve modes for attachments.
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.
SampleZero = 1
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.
Average = 2
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.
Min = 4
The resolved sample is calculated from the minimum of the samples.
This mode is supported for depth and stencil formats only.
Max = 8
The resolved sample is calculated from the maximum of the samples.
This mode is supported for depth and stencil formats only.
Trait Implementations§
source§impl Clone for ResolveMode
impl Clone for ResolveMode
source§fn clone(&self) -> ResolveMode
fn clone(&self) -> ResolveMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolveMode
impl Debug for ResolveMode
source§impl From<ResolveMode> for ResolveModeFlags
impl From<ResolveMode> for ResolveModeFlags
source§fn from(val: ResolveMode) -> Self
fn from(val: ResolveMode) -> Self
Converts to this type from the input type.
source§impl From<ResolveMode> for ResolveModes
impl From<ResolveMode> for ResolveModes
source§fn from(val: ResolveMode) -> Self
fn from(val: ResolveMode) -> Self
Converts to this type from the input type.
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>,
Creates a value from an iterator. Read more
source§impl Hash for ResolveMode
impl Hash for ResolveMode
source§impl PartialEq for ResolveMode
impl PartialEq for ResolveMode
source§fn eq(&self, other: &ResolveMode) -> bool
fn eq(&self, other: &ResolveMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<ResolveModeFlags> for ResolveMode
impl TryFrom<ResolveModeFlags> for ResolveMode
impl Copy for ResolveMode
impl Eq for ResolveMode
impl StructuralEq for ResolveMode
impl StructuralPartialEq for ResolveMode
Auto Trait Implementations§
impl RefUnwindSafe for ResolveMode
impl Send for ResolveMode
impl Sync for ResolveMode
impl Unpin for ResolveMode
impl UnwindSafe for ResolveMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more