#[repr(u8)]pub enum Usage {
Data = 0,
Dynamic = 1,
Upload = 2,
Download = 3,
}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 = 0
Full speed GPU access. Optimal for render targets and resourced memory.
Dynamic = 1
CPU to GPU data flow with update commands. Used for dynamic buffer data, typically constant buffers.
Upload = 2
CPU to GPU data flow with mapping. Used for staging for upload to GPU.
Download = 3
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 PartialOrd for Usage
impl PartialOrd for Usage
impl Copy for Usage
impl Eq for Usage
impl StructuralPartialEq for Usage
Auto Trait Implementations§
impl Freeze for Usage
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnwindSafe for Usage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more