Struct vulkano::memory::MemoryHeapFlags
source · pub struct MemoryHeapFlags(/* private fields */);
Expand description
Attributes of a memory heap.
Implementations§
source§impl MemoryHeapFlags
impl MemoryHeapFlags
sourcepub const DEVICE_LOCAL: Self = _
pub const DEVICE_LOCAL: Self = _
The heap corresponds to device-local memory.
sourcepub const MULTI_INSTANCE: Self = _
pub const MULTI_INSTANCE: Self = _
If used on a logical device that represents more than one physical device, allocations are replicated across each physical device’s instance of this heap.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a MemoryHeapFlags
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 MemoryHeapFlags
impl BitAnd for MemoryHeapFlags
source§impl BitAndAssign for MemoryHeapFlags
impl BitAndAssign for MemoryHeapFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for MemoryHeapFlags
impl BitOr for MemoryHeapFlags
source§impl BitOrAssign for MemoryHeapFlags
impl BitOrAssign for MemoryHeapFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for MemoryHeapFlags
impl BitXor for MemoryHeapFlags
source§impl BitXorAssign for MemoryHeapFlags
impl BitXorAssign for MemoryHeapFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for MemoryHeapFlags
impl Clone for MemoryHeapFlags
source§fn clone(&self) -> MemoryHeapFlags
fn clone(&self) -> MemoryHeapFlags
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 MemoryHeapFlags
impl Debug for MemoryHeapFlags
source§impl Default for MemoryHeapFlags
impl Default for MemoryHeapFlags
source§impl From<MemoryHeapFlags> for MemoryHeapFlags
impl From<MemoryHeapFlags> for MemoryHeapFlags
source§fn from(val: MemoryHeapFlags) -> Self
fn from(val: MemoryHeapFlags) -> Self
Converts to this type from the input type.
source§impl From<MemoryHeapFlags> for MemoryHeapFlags
impl From<MemoryHeapFlags> for MemoryHeapFlags
source§fn from(val: MemoryHeapFlags) -> Self
fn from(val: MemoryHeapFlags) -> Self
Converts to this type from the input type.
source§impl Hash for MemoryHeapFlags
impl Hash for MemoryHeapFlags
source§impl PartialEq for MemoryHeapFlags
impl PartialEq for MemoryHeapFlags
source§fn eq(&self, other: &MemoryHeapFlags) -> bool
fn eq(&self, other: &MemoryHeapFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for MemoryHeapFlags
impl Sub for MemoryHeapFlags
source§impl SubAssign for MemoryHeapFlags
impl SubAssign for MemoryHeapFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for MemoryHeapFlags
impl Eq for MemoryHeapFlags
impl StructuralEq for MemoryHeapFlags
impl StructuralPartialEq for MemoryHeapFlags
Auto Trait Implementations§
impl RefUnwindSafe for MemoryHeapFlags
impl Send for MemoryHeapFlags
impl Sync for MemoryHeapFlags
impl Unpin for MemoryHeapFlags
impl UnwindSafe for MemoryHeapFlags
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