Struct bedrock::MemoryPropertyFlags
[−]
[src]
pub struct MemoryPropertyFlags(_);
Bitmask specifying properties for a memory type
Methods
impl MemoryPropertyFlags
[src]
pub const EMPTY: Self
EMPTY: Self = MemoryPropertyFlags(0)
Empty set
pub const DEVICE_LOCAL: Self
DEVICE_LOCAL: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)
Memory allocated with this type is the most efficient for device access
pub const HOST_VISIBLE: Self
HOST_VISIBLE: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)
Memory allocated with this type can be mapped for host access using vkMapMemory
pub const HOST_COHERENT: Self
HOST_COHERENT: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_HOST_COHERENT_BIT)
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.
pub const HOST_CACHED: Self
HOST_CACHED: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_HOST_CACHED_BIT)
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
pub const LAZILY_ALLOCATED: Self
LAZILY_ALLOCATED: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT)
The memory type only allows device access to the memory.
pub fn device_local(self) -> Self
[src]
Memory allocated with this type is the most efficient for device access
pub fn host_visible(self) -> Self
[src]
Memory allocated with this type can be mapped for host access using vkMapMemory
pub fn host_coherent(self) -> Self
[src]
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.
pub fn host_cached(self) -> Self
[src]
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
pub fn lazily_allocated(self) -> Self
[src]
The memory type only allows device access to the memory.
Trait Implementations
impl Debug for MemoryPropertyFlags
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for MemoryPropertyFlags
[src]
fn clone(&self) -> MemoryPropertyFlags
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for MemoryPropertyFlags
[src]
impl PartialEq for MemoryPropertyFlags
[src]
fn eq(&self, __arg_0: &MemoryPropertyFlags) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MemoryPropertyFlags) -> bool
[src]
This method tests for !=
.