[−][src]Struct bedrock::MemoryPropertyFlags
Bitmask specifying properties for a memory type
Methods
impl MemoryPropertyFlags
[src]
pub const EMPTY: Self
[src]
Empty set
pub const DEVICE_LOCAL: Self
[src]
Memory allocated with this type is the most efficient for device access
pub const HOST_VISIBLE: Self
[src]
Memory allocated with this type can be mapped for host access using vkMapMemory
pub const HOST_COHERENT: 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 const HOST_CACHED: 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 const LAZILY_ALLOCATED: Self
[src]
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.
pub fn bits(self) -> VkMemoryPropertyFlags
[src]
Trait Implementations
impl Clone for MemoryPropertyFlags
[src]
fn clone(&self) -> MemoryPropertyFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MemoryPropertyFlags
[src]
impl Debug for MemoryPropertyFlags
[src]
impl Eq for MemoryPropertyFlags
[src]
impl PartialEq<MemoryPropertyFlags> for MemoryPropertyFlags
[src]
fn eq(&self, other: &MemoryPropertyFlags) -> bool
[src]
fn ne(&self, other: &MemoryPropertyFlags) -> bool
[src]
impl StructuralEq for MemoryPropertyFlags
[src]
impl StructuralPartialEq for MemoryPropertyFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryPropertyFlags
impl Send for MemoryPropertyFlags
impl Sync for MemoryPropertyFlags
impl Unpin for MemoryPropertyFlags
impl UnwindSafe for MemoryPropertyFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,