pub struct MemoryHeapFlags(/* private fields */);
Expand description
Bitmask specifying attribute flags for a heap
Implementations§
Source§impl MemoryHeapFlags
impl MemoryHeapFlags
Sourcepub const fn bits(&self) -> VkMemoryHeapFlags
pub const fn bits(&self) -> VkMemoryHeapFlags
Returns bits in this flags
Sourcepub const fn has_any(self, other: Self) -> bool
pub const fn has_any(self, other: Self) -> bool
Returns true if any of specified bits are contained in this flag.
Source§impl MemoryHeapFlags
impl MemoryHeapFlags
Sourcepub const DEVICE_LOCAL: Self
pub const DEVICE_LOCAL: Self
The heap corresponds to device-local memory. Device-local memory may have different performance characteristics than host-local memory, and may support different memory property flags.
Sourcepub const MULTI_INSTANCE: Self
Available on crate feature Allow1_1APIs
only.
pub const MULTI_INSTANCE: Self
Allow1_1APIs
only.In a logical device representing more than one physical device, there is a per-physical device instance of the heap memory. By default, an allocation from such a heap will be replicated to each physical device’s instance of the heap.
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 Clone for MemoryHeapFlags
impl Clone for MemoryHeapFlags
Source§fn clone(&self) -> MemoryHeapFlags
fn clone(&self) -> MemoryHeapFlags
Returns a duplicate 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 From<MemoryHeapFlags> for VkMemoryHeapFlags
impl From<MemoryHeapFlags> for VkMemoryHeapFlags
Source§fn from(value: MemoryHeapFlags) -> Self
fn from(value: MemoryHeapFlags) -> Self
Converts to this type from the input type.
Source§impl Not for MemoryHeapFlags
impl Not for MemoryHeapFlags
Source§impl PartialEq for MemoryHeapFlags
impl PartialEq for MemoryHeapFlags
impl Copy for MemoryHeapFlags
impl Eq for MemoryHeapFlags
impl StructuralPartialEq for MemoryHeapFlags
Auto Trait Implementations§
impl Freeze for MemoryHeapFlags
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