Struct bedrock::MemoryPropertyFlags [] [src]

pub struct MemoryPropertyFlags(_);

Bitmask specifying properties for a memory type

Methods

impl MemoryPropertyFlags
[src]

EMPTY: Self = MemoryPropertyFlags(0)

Empty set

DEVICE_LOCAL: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT)

Memory allocated with this type is the most efficient for device access

HOST_VISIBLE: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT)

Memory allocated with this type can be mapped for host access using vkMapMemory

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.

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

LAZILY_ALLOCATED: Self = MemoryPropertyFlags(VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT)

The memory type only allows device access to the memory.

[src]

Memory allocated with this type is the most efficient for device access

[src]

Memory allocated with this type can be mapped for host access using vkMapMemory

[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.

[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

[src]

The memory type only allows device access to the memory.

Trait Implementations

impl Debug for MemoryPropertyFlags
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for MemoryPropertyFlags
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for MemoryPropertyFlags
[src]

impl PartialEq for MemoryPropertyFlags
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for MemoryPropertyFlags
[src]

Auto Trait Implementations