Struct VkMemory Property Flags 
pub struct VkMemoryPropertyFlags(/* private fields */);Expand description
Implementations§
§impl MemoryPropertyFlags
 
impl MemoryPropertyFlags
pub const fn empty() -> MemoryPropertyFlags
pub const fn from_raw(x: u32) -> MemoryPropertyFlags
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn intersects(self, other: MemoryPropertyFlags) -> bool
pub const fn contains(self, other: MemoryPropertyFlags) -> bool
pub const fn contains(self, other: MemoryPropertyFlags) -> bool
Returns whether other is a subset of self
§impl MemoryPropertyFlags
 
impl MemoryPropertyFlags
pub const DEVICE_LOCAL: MemoryPropertyFlags
pub const DEVICE_LOCAL: MemoryPropertyFlags
If otherwise stated, then allocate memory on device
pub const HOST_VISIBLE: MemoryPropertyFlags
pub const HOST_VISIBLE: MemoryPropertyFlags
Memory is mappable by host
pub const HOST_COHERENT: MemoryPropertyFlags
pub const HOST_COHERENT: MemoryPropertyFlags
Memory will have i/o coherency. If not set, application may need to use vkFlushMappedMemoryRanges and vkInvalidateMappedMemoryRanges to flush/invalidate host cache
pub const HOST_CACHED: MemoryPropertyFlags
pub const HOST_CACHED: MemoryPropertyFlags
Memory will be cached by the host
pub const LAZILY_ALLOCATED: MemoryPropertyFlags
pub const LAZILY_ALLOCATED: MemoryPropertyFlags
Memory may be allocated by the driver when it is required
§impl MemoryPropertyFlags
Generated from ‘VK_AMD_device_coherent_memory’
 
impl MemoryPropertyFlags
Generated from ‘VK_AMD_device_coherent_memory’
pub const DEVICE_COHERENT_AMD: MemoryPropertyFlags
pub const DEVICE_UNCACHED_AMD: MemoryPropertyFlags
§impl MemoryPropertyFlags
Generated from ‘VK_NV_external_memory_rdma’
 
impl MemoryPropertyFlags
Generated from ‘VK_NV_external_memory_rdma’
pub const RDMA_CAPABLE_NV: MemoryPropertyFlags
§impl MemoryPropertyFlags
Generated from ‘VK_VERSION_1_1’
 
impl MemoryPropertyFlags
Generated from ‘VK_VERSION_1_1’
pub const PROTECTED: MemoryPropertyFlags
pub const PROTECTED: MemoryPropertyFlags
Memory is protected
Trait Implementations§
§impl BitAnd for MemoryPropertyFlags
 
impl BitAnd for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
 
type Output = MemoryPropertyFlags
The resulting type after applying the 
& operator.§fn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
 
fn bitand(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the 
& operation. Read more§impl BitAndAssign for MemoryPropertyFlags
 
impl BitAndAssign for MemoryPropertyFlags
§fn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
 
fn bitand_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the 
&= operation. Read more§impl BitOr for MemoryPropertyFlags
 
impl BitOr for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
 
type Output = MemoryPropertyFlags
The resulting type after applying the 
| operator.§fn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
 
fn bitor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the 
| operation. Read more§impl BitOrAssign for MemoryPropertyFlags
 
impl BitOrAssign for MemoryPropertyFlags
§fn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
 
fn bitor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the 
|= operation. Read more§impl BitXor for MemoryPropertyFlags
 
impl BitXor for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
 
type Output = MemoryPropertyFlags
The resulting type after applying the 
^ operator.§fn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
 
fn bitxor(self, rhs: MemoryPropertyFlags) -> MemoryPropertyFlags
Performs the 
^ operation. Read more§impl BitXorAssign for MemoryPropertyFlags
 
impl BitXorAssign for MemoryPropertyFlags
§fn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
 
fn bitxor_assign(&mut self, rhs: MemoryPropertyFlags)
Performs the 
^= operation. Read more§impl Clone for MemoryPropertyFlags
 
impl Clone for MemoryPropertyFlags
§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 more§impl Debug for MemoryPropertyFlags
 
impl Debug for MemoryPropertyFlags
§impl Default for MemoryPropertyFlags
 
impl Default for MemoryPropertyFlags
§fn default() -> MemoryPropertyFlags
 
fn default() -> MemoryPropertyFlags
Returns the “default value” for a type. Read more
§impl Hash for MemoryPropertyFlags
 
impl Hash for MemoryPropertyFlags
§impl Not for MemoryPropertyFlags
 
impl Not for MemoryPropertyFlags
§type Output = MemoryPropertyFlags
 
type Output = MemoryPropertyFlags
The resulting type after applying the 
! operator.§fn not(self) -> MemoryPropertyFlags
 
fn not(self) -> MemoryPropertyFlags
Performs the unary 
! operation. Read more§impl Ord for MemoryPropertyFlags
 
impl Ord for MemoryPropertyFlags
§fn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
 
fn cmp(&self, other: &MemoryPropertyFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for MemoryPropertyFlags
 
impl PartialEq for MemoryPropertyFlags
§impl PartialOrd for MemoryPropertyFlags
 
impl PartialOrd 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