Enum gfx_core::memory::Usage [−][src]
#[repr(u8)] pub enum Usage { Data, Dynamic, Upload, Download, }
How this memory will be used regarding GPU-CPU data flow.
This information is used to create resources (see gfx::Factory).
Variants
Full speed GPU access. Optimal for render targets and resourced memory.
CPU to GPU data flow with update commands. Used for dynamic buffer data, typically constant buffers.
CPU to GPU data flow with mapping. Used for staging for upload to GPU.
GPU to CPU data flow with mapping. Used for staging for download from GPU.
Trait Implementations
impl Clone for Usage
[src][+]
impl Copy for Usage
[src]
impl Debug for Usage
[src][+]
impl Eq for Usage
[src]
impl Hash for Usage
[src][+]
impl Ord for Usage
[src][+]
impl PartialEq<Usage> for Usage
[src][+]
impl PartialOrd<Usage> for Usage
[src][+]
impl StructuralEq for Usage
[src]
impl StructuralPartialEq for Usage
[src]
Auto Trait Implementations
impl RefUnwindSafe for Usage
impl Send for Usage
impl Sync for Usage
impl Unpin for Usage
impl UnwindSafe for Usage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,