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,
pub _ne: NonExhaustive,
}
Expand description
Specifies a set of SampleCount
values.
Fields
sample1: bool
1 sample per pixel.
sample2: bool
2 samples per pixel.
sample4: bool
4 samples per pixel.
sample8: bool
8 samples per pixel.
sample16: bool
16 samples per pixel.
sample32: bool
32 samples per pixel.
sample64: bool
64 samples per pixel.
_ne: NonExhaustive
Implementations
sourceimpl SampleCounts
impl SampleCounts
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a SampleCounts
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 set in self
or other
, but not both.
sourceimpl SampleCounts
impl SampleCounts
sourcepub const fn contains_count(&self, sample_count: SampleCount) -> bool
pub const fn contains_count(&self, sample_count: SampleCount) -> bool
Returns true if self
has the sample_count
value set.
sourcepub const fn max_count(&self) -> SampleCount
pub const fn max_count(&self) -> SampleCount
Returns the maximum sample count supported by self
.
Trait Implementations
sourceimpl BitAnd<SampleCounts> for SampleCounts
impl BitAnd<SampleCounts> for SampleCounts
type Output = SampleCounts
type Output = SampleCounts
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<SampleCounts> for SampleCounts
impl BitAndAssign<SampleCounts> for SampleCounts
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<SampleCounts> for SampleCounts
impl BitOr<SampleCounts> for SampleCounts
type Output = SampleCounts
type Output = SampleCounts
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<SampleCounts> for SampleCounts
impl BitOrAssign<SampleCounts> for SampleCounts
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<SampleCounts> for SampleCounts
impl BitXor<SampleCounts> for SampleCounts
type Output = SampleCounts
type Output = SampleCounts
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<SampleCounts> for SampleCounts
impl BitXorAssign<SampleCounts> for SampleCounts
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl 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 moresourceimpl Debug for SampleCounts
impl Debug for SampleCounts
sourceimpl Default for SampleCounts
impl Default for SampleCounts
sourceimpl From<SampleCountFlags> for SampleCounts
impl From<SampleCountFlags> for SampleCounts
sourcefn from(val: SampleCountFlags) -> Self
fn from(val: SampleCountFlags) -> Self
Converts to this type from the input type.
sourceimpl From<SampleCounts> for SampleCountFlags
impl From<SampleCounts> for SampleCountFlags
sourcefn from(val: SampleCounts) -> Self
fn from(val: SampleCounts) -> Self
Converts to this type from the input type.
sourceimpl Hash for SampleCounts
impl Hash for SampleCounts
sourceimpl PartialEq<SampleCounts> for SampleCounts
impl PartialEq<SampleCounts> for SampleCounts
sourcefn eq(&self, other: &SampleCounts) -> bool
fn eq(&self, other: &SampleCounts) -> bool
sourceimpl Sub<SampleCounts> for SampleCounts
impl Sub<SampleCounts> for SampleCounts
type Output = SampleCounts
type Output = SampleCounts
The resulting type after applying the
-
operator.sourceimpl SubAssign<SampleCounts> for SampleCounts
impl SubAssign<SampleCounts> for SampleCounts
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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