[][src]Struct bedrock::MemoryPropertyFlags

pub struct 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]

impl Copy for MemoryPropertyFlags[src]

impl Debug for MemoryPropertyFlags[src]

impl Eq for MemoryPropertyFlags[src]

impl PartialEq<MemoryPropertyFlags> for MemoryPropertyFlags[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.