pub struct MemoryPropertyFlags(/* private fields */);
Expand description
Bitmask specifying properties for a memory type
Implementations§
Source§impl MemoryPropertyFlags
impl MemoryPropertyFlags
Sourcepub const fn bits(&self) -> VkMemoryPropertyFlags
pub const fn bits(&self) -> VkMemoryPropertyFlags
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 MemoryPropertyFlags
impl MemoryPropertyFlags
Sourcepub const DEVICE_LOCAL: Self
pub const DEVICE_LOCAL: Self
Memory allocated with this type is the most efficient for device access
Sourcepub const HOST_VISIBLE: Self
pub const HOST_VISIBLE: Self
Memory allocated with this type can be mapped for host access using vkMapMemory
Sourcepub const HOST_COHERENT: Self
pub const HOST_COHERENT: Self
The host cache management commands vkFlushMappedMemoryRanges
and vkInvalidateMappedMemoryRanges
are not needed to flush host writes to the device or make device writes visible to the host, respectively.
Sourcepub const HOST_CACHED: Self
pub const HOST_CACHED: Self
Memory allocated with this type is cached on the host. Host memory accesses to uncached memory are slower than to cached memory, however uncached memory is always host coherent
Sourcepub const LAZILY_ALLOCATED: Self
pub const LAZILY_ALLOCATED: Self
The memory type only allows device access to the memory.
Trait Implementations§
Source§impl BitAnd for MemoryPropertyFlags
impl BitAnd for MemoryPropertyFlags
Source§impl BitAndAssign for MemoryPropertyFlags
impl BitAndAssign for MemoryPropertyFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for MemoryPropertyFlags
impl BitOr for MemoryPropertyFlags
Source§impl BitOrAssign for MemoryPropertyFlags
impl BitOrAssign for MemoryPropertyFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl Clone for MemoryPropertyFlags
impl Clone for MemoryPropertyFlags
Source§fn clone(&self) -> MemoryPropertyFlags
fn clone(&self) -> MemoryPropertyFlags
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 MemoryPropertyFlags
impl Debug for MemoryPropertyFlags
Source§impl From<MemoryPropertyFlags> for VkMemoryPropertyFlags
impl From<MemoryPropertyFlags> for VkMemoryPropertyFlags
Source§fn from(value: MemoryPropertyFlags) -> Self
fn from(value: MemoryPropertyFlags) -> Self
Converts to this type from the input type.
Source§impl Not for MemoryPropertyFlags
impl Not for MemoryPropertyFlags
Source§impl PartialEq for MemoryPropertyFlags
impl PartialEq for MemoryPropertyFlags
impl Copy for MemoryPropertyFlags
impl Eq for MemoryPropertyFlags
impl StructuralPartialEq for MemoryPropertyFlags
Auto Trait Implementations§
impl Freeze for MemoryPropertyFlags
impl RefUnwindSafe for MemoryPropertyFlags
impl Send for MemoryPropertyFlags
impl Sync for MemoryPropertyFlags
impl Unpin for MemoryPropertyFlags
impl UnwindSafe for MemoryPropertyFlags
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