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
UnknownNo intended memory usage specified.
GpuOnlyMemory will be used on the device only, no need to be mapped on host.
CpuOnlyMemory will be mapped on host. Could be used for transfer to device.
CpuToGpuMemory will be used for frequent (dynamic) updates from host and reads on device.
GpuToCpuMemory will be used for writing on device and readback on host.
Trait Implementations
impl Copy for MemoryUsage[src]
impl Clone for MemoryUsage[src]
fn clone(&self) -> MemoryUsage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for MemoryUsage[src]
fn eq(&self, __arg_0: &MemoryUsage) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for MemoryUsage[src]
impl PartialOrd for MemoryUsage[src]
fn partial_cmp(&self, __arg_0: &MemoryUsage) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0
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]
fn cmp(&self, __arg_0: &MemoryUsage) -> Ordering
This method returns an Ordering between self and other. Read more