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

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

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.