Struct vulkano::image::SampleCounts
source · [−]pub struct SampleCounts {
pub sample1: bool,
pub sample2: bool,
pub sample4: bool,
pub sample8: bool,
pub sample16: bool,
pub sample32: bool,
pub sample64: bool,
}
Expand description
Specifies how many sample counts supported for an image used for storage operations.
Fields
sample1: bool
sample2: bool
sample4: bool
sample8: bool
sample16: bool
sample32: bool
sample64: bool
Implementations
sourceimpl SampleCounts
impl SampleCounts
sourcepub fn contains(&self, sample_count: SampleCount) -> bool
pub fn contains(&self, sample_count: SampleCount) -> bool
Returns true if self
has the sample_count
value set.
Trait Implementations
sourceimpl Clone for SampleCounts
impl Clone for SampleCounts
sourcefn clone(&self) -> SampleCounts
fn clone(&self) -> SampleCounts
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 more
sourceimpl Debug for SampleCounts
impl Debug for SampleCounts
sourceimpl Default for SampleCounts
impl Default for SampleCounts
sourcefn default() -> SampleCounts
fn default() -> SampleCounts
Returns the “default value” for a type. Read more
sourceimpl From<SampleCountFlags> for SampleCounts
impl From<SampleCountFlags> for SampleCounts
sourcefn from(sample_counts: SampleCountFlags) -> SampleCounts
fn from(sample_counts: SampleCountFlags) -> SampleCounts
Performs the conversion.
sourceimpl From<SampleCounts> for SampleCountFlags
impl From<SampleCounts> for SampleCountFlags
sourcefn from(val: SampleCounts) -> SampleCountFlags
fn from(val: SampleCounts) -> SampleCountFlags
Performs the conversion.
sourceimpl Hash for SampleCounts
impl Hash for SampleCounts
sourceimpl Ord for SampleCounts
impl Ord for SampleCounts
sourceimpl PartialEq<SampleCounts> for SampleCounts
impl PartialEq<SampleCounts> for SampleCounts
sourcefn eq(&self, other: &SampleCounts) -> bool
fn eq(&self, other: &SampleCounts) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SampleCounts) -> bool
fn ne(&self, other: &SampleCounts) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SampleCounts> for SampleCounts
impl PartialOrd<SampleCounts> for SampleCounts
sourcefn partial_cmp(&self, other: &SampleCounts) -> Option<Ordering>
fn partial_cmp(&self, other: &SampleCounts) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SampleCounts
impl Eq for SampleCounts
impl StructuralEq for SampleCounts
impl StructuralPartialEq for SampleCounts
Auto Trait Implementations
impl RefUnwindSafe for SampleCounts
impl Send for SampleCounts
impl Sync for SampleCounts
impl Unpin for SampleCounts
impl UnwindSafe for SampleCounts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more