Enum vulkan_malloc::MemoryUsage [] [src]

pub enum MemoryUsage {
    Unknown,
    GpuOnly,
    CpuOnly,
    CpuToGpu,
    GpuToCpu,
}

Specifies how memory will be used with respect to transfers between the device and the host.

Variants

No intended memory usage specified.

Memory will be used on the device only, no need to be mapped on host.

Memory will be mapped on host. Could be used for transfer to device.

Memory will be used for frequent (dynamic) updates from host and reads on device.

Memory will be used for writing on device and readback on host.

Trait Implementations

impl Copy for MemoryUsage
[src]

impl Clone for MemoryUsage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for MemoryUsage
[src]

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

This method tests for !=.

impl Eq for MemoryUsage
[src]

impl PartialOrd for MemoryUsage
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for MemoryUsage
[src]

This method returns an Ordering between self and other. Read more

impl Hash for MemoryUsage
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more