Struct vulkano::image::SparseImageFormatFlags
source · pub struct SparseImageFormatFlags {
pub single_miptail: bool,
pub aligned_mip_size: bool,
pub nonstandard_block_size: bool,
}
Expand description
Flags specifying information about a sparse resource.
Fields
single_miptail: bool
The image uses a single mip tail region for all array layers, instead of one mip tail region per array layer.
aligned_mip_size: bool
The image’s mip tail region begins with the first mip level whose dimensions are not an integer multiple of the corresponding sparse image block dimensions.
nonstandard_block_size: bool
The image uses non-standard sparse image block dimensions.
Implementations
sourceimpl SparseImageFormatFlags
impl SparseImageFormatFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a SparseImageFormatFlags
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.
sourcepub const fn complement(&self) -> Self
pub const fn complement(&self) -> Self
Returns the flags not in self
.
Trait Implementations
sourceimpl BitAnd<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitAnd<SparseImageFormatFlags> for SparseImageFormatFlags
type Output = SparseImageFormatFlags
type Output = SparseImageFormatFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitAndAssign<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitOr<SparseImageFormatFlags> for SparseImageFormatFlags
type Output = SparseImageFormatFlags
type Output = SparseImageFormatFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitOrAssign<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitXor<SparseImageFormatFlags> for SparseImageFormatFlags
type Output = SparseImageFormatFlags
type Output = SparseImageFormatFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<SparseImageFormatFlags> for SparseImageFormatFlags
impl BitXorAssign<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for SparseImageFormatFlags
impl Clone for SparseImageFormatFlags
sourcefn clone(&self) -> SparseImageFormatFlags
fn clone(&self) -> SparseImageFormatFlags
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 SparseImageFormatFlags
impl Debug for SparseImageFormatFlags
sourceimpl Default for SparseImageFormatFlags
impl Default for SparseImageFormatFlags
sourceimpl From<SparseImageFormatFlags> for SparseImageFormatFlags
impl From<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn from(val: SparseImageFormatFlags) -> Self
fn from(val: SparseImageFormatFlags) -> Self
Converts to this type from the input type.
sourceimpl From<SparseImageFormatFlags> for SparseImageFormatFlags
impl From<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn from(val: SparseImageFormatFlags) -> Self
fn from(val: SparseImageFormatFlags) -> Self
Converts to this type from the input type.
sourceimpl Hash for SparseImageFormatFlags
impl Hash for SparseImageFormatFlags
sourceimpl Not for SparseImageFormatFlags
impl Not for SparseImageFormatFlags
type Output = SparseImageFormatFlags
type Output = SparseImageFormatFlags
The resulting type after applying the
!
operator.sourceimpl PartialEq<SparseImageFormatFlags> for SparseImageFormatFlags
impl PartialEq<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn eq(&self, other: &SparseImageFormatFlags) -> bool
fn eq(&self, other: &SparseImageFormatFlags) -> bool
sourceimpl Sub<SparseImageFormatFlags> for SparseImageFormatFlags
impl Sub<SparseImageFormatFlags> for SparseImageFormatFlags
type Output = SparseImageFormatFlags
type Output = SparseImageFormatFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<SparseImageFormatFlags> for SparseImageFormatFlags
impl SubAssign<SparseImageFormatFlags> for SparseImageFormatFlags
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for SparseImageFormatFlags
impl Eq for SparseImageFormatFlags
impl StructuralEq for SparseImageFormatFlags
impl StructuralPartialEq for SparseImageFormatFlags
Auto Trait Implementations
impl RefUnwindSafe for SparseImageFormatFlags
impl Send for SparseImageFormatFlags
impl Sync for SparseImageFormatFlags
impl Unpin for SparseImageFormatFlags
impl UnwindSafe for SparseImageFormatFlags
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