pub enum Usage {
Data,
Dynamic,
Upload,
Download,
}
Expand description
How this memory will be used regarding GPU-CPU data flow.
This information is used to create resources (see gfx::Factory).
Variants§
Data
Full speed GPU access. Optimal for render targets and resourced memory.
Dynamic
CPU to GPU data flow with update commands. Used for dynamic buffer data, typically constant buffers.
Upload
CPU to GPU data flow with mapping. Used for staging for upload to GPU.
Download
GPU to CPU data flow with mapping. Used for staging for download from GPU.
Trait Implementations§
source§impl Ord for Usage
impl Ord for Usage
source§impl PartialEq<Usage> for Usage
impl PartialEq<Usage> for Usage
source§impl PartialOrd<Usage> for Usage
impl PartialOrd<Usage> for Usage
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more