Struct vulkano::image::SparseImageFormatFlags
source · pub struct SparseImageFormatFlags(/* private fields */);
Expand description
Flags specifying information about a sparse resource.
Implementations§
source§impl SparseImageFormatFlags
impl SparseImageFormatFlags
sourcepub const SINGLE_MIPTAIL: Self = _
pub const SINGLE_MIPTAIL: Self = _
The image uses a single mip tail region for all array layers, instead of one mip tail region per array layer.
sourcepub const ALIGNED_MIP_SIZE: Self = _
pub const ALIGNED_MIP_SIZE: Self = _
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.
sourcepub const NONSTANDARD_BLOCK_SIZE: Self = _
pub const NONSTANDARD_BLOCK_SIZE: Self = _
The image uses non-standard sparse image block dimensions.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns 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 that are set in self
or other
, but not in both.
Trait Implementations§
source§impl BitAnd for SparseImageFormatFlags
impl BitAnd for SparseImageFormatFlags
source§impl BitAndAssign for SparseImageFormatFlags
impl BitAndAssign for SparseImageFormatFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for SparseImageFormatFlags
impl BitOr for SparseImageFormatFlags
source§impl BitOrAssign for SparseImageFormatFlags
impl BitOrAssign for SparseImageFormatFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for SparseImageFormatFlags
impl BitXor for SparseImageFormatFlags
source§impl BitXorAssign for SparseImageFormatFlags
impl BitXorAssign for SparseImageFormatFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for SparseImageFormatFlags
impl Clone for SparseImageFormatFlags
source§fn clone(&self) -> SparseImageFormatFlags
fn clone(&self) -> SparseImageFormatFlags
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 SparseImageFormatFlags
impl Debug for SparseImageFormatFlags
source§impl Default for SparseImageFormatFlags
impl Default for SparseImageFormatFlags
source§impl From<SparseImageFormatFlags> for SparseImageFormatFlags
impl From<SparseImageFormatFlags> for SparseImageFormatFlags
source§fn from(val: SparseImageFormatFlags) -> Self
fn from(val: SparseImageFormatFlags) -> Self
Converts to this type from the input type.
source§impl From<SparseImageFormatFlags> for SparseImageFormatFlags
impl From<SparseImageFormatFlags> for SparseImageFormatFlags
source§fn from(val: SparseImageFormatFlags) -> Self
fn from(val: SparseImageFormatFlags) -> Self
Converts to this type from the input type.
source§impl Hash for SparseImageFormatFlags
impl Hash for SparseImageFormatFlags
source§impl PartialEq for SparseImageFormatFlags
impl PartialEq for SparseImageFormatFlags
source§fn eq(&self, other: &SparseImageFormatFlags) -> bool
fn eq(&self, other: &SparseImageFormatFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for SparseImageFormatFlags
impl Sub for SparseImageFormatFlags
source§impl SubAssign for SparseImageFormatFlags
impl SubAssign for SparseImageFormatFlags
source§fn 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§
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