Enum vulkano::image::SampleCount
source · #[non_exhaustive]#[repr(u32)]pub enum SampleCount {
Sample1 = 1,
Sample2 = 2,
Sample4 = 4,
Sample8 = 8,
Sample16 = 16,
Sample32 = 32,
Sample64 = 64,
}
Expand description
The number of samples per texel of an image.
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.
Sample1 = 1
1 sample per texel.
Sample2 = 2
2 samples per texel.
Sample4 = 4
4 samples per texel.
Sample8 = 8
8 samples per texel.
Sample16 = 16
16 samples per texel.
Sample32 = 32
32 samples per texel.
Sample64 = 64
64 samples per texel.
Trait Implementations§
source§impl Clone for SampleCount
impl Clone for SampleCount
source§fn clone(&self) -> SampleCount
fn clone(&self) -> SampleCount
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 SampleCount
impl Debug for SampleCount
source§impl From<SampleCount> for SampleCountFlags
impl From<SampleCount> for SampleCountFlags
source§fn from(val: SampleCount) -> Self
fn from(val: SampleCount) -> Self
Converts to this type from the input type.
source§impl From<SampleCount> for SampleCounts
impl From<SampleCount> for SampleCounts
source§fn from(val: SampleCount) -> Self
fn from(val: SampleCount) -> Self
Converts to this type from the input type.
source§impl From<SampleCount> for u32
impl From<SampleCount> for u32
source§fn from(value: SampleCount) -> Self
fn from(value: SampleCount) -> Self
Converts to this type from the input type.
source§impl FromIterator<SampleCount> for SampleCounts
impl FromIterator<SampleCount> for SampleCounts
source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = SampleCount>,
fn from_iter<T>(iter: T) -> Selfwhere T: IntoIterator<Item = SampleCount>,
Creates a value from an iterator. Read more
source§impl Hash for SampleCount
impl Hash for SampleCount
source§impl PartialEq for SampleCount
impl PartialEq for SampleCount
source§fn eq(&self, other: &SampleCount) -> bool
fn eq(&self, other: &SampleCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<SampleCountFlags> for SampleCount
impl TryFrom<SampleCountFlags> for SampleCount
source§impl TryFrom<u32> for SampleCount
impl TryFrom<u32> for SampleCount
impl Copy for SampleCount
impl Eq for SampleCount
impl StructuralEq for SampleCount
impl StructuralPartialEq for SampleCount
Auto Trait Implementations§
impl RefUnwindSafe for SampleCount
impl Send for SampleCount
impl Sync for SampleCount
impl Unpin for SampleCount
impl UnwindSafe for SampleCount
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