[][src]Enum web_glitz::buffer::UsageHint

pub enum UsageHint {
    StaticDraw,
    DynamicDraw,
    StreamDraw,
    StaticRead,
    DynamicRead,
    StreamRead,
    StaticCopy,
    DynamicCopy,
    StreamCopy,
}

Enumerates the available usage hint for Buffers.

A usage hint may be used to indicate to the GPU driver how you intend to use the data in the Buffer. The driver may use this information for performance optimizations.

Note that this is merely a performance hint: it does not affect what you can or cannot do with the Buffer.

Variants

StaticDraw

Hints that the data will be uploaded once and read by the GPU repeatedly.

DynamicDraw

Hints that the data will be uploaded repeatedly and read by the GPU repeatedly.

StreamDraw

Hints that the data will be uploaded once and read by the GPU at most a few times.

StaticRead

Hints that the data will be written by the GPU once and will be downloaded repeatedly.

DynamicRead

Hints that the data will be written by the GPU repeatedly and will be downloaded repeatedly.

StreamRead

Hints that the data will be written by the GPU once and will be downloaded at most a few times.

StaticCopy

Hints that the data will be written by the GPU once and read by the GPU repeatedly.

DynamicCopy

Hints that the data will be written by the GPU repeatedly and read by the GPU repeatedly.

StreamCopy

Hints that the data will be written once by the GPU and read by the GPU at most a few times.

Trait Implementations

impl Clone for UsageHint[src]

impl Copy for UsageHint[src]

impl Debug for UsageHint[src]

Auto Trait Implementations

Blanket Implementations

impl<D, T> IntoBuffer<T> for D where
    D: Borrow<T> + 'static,
    T: Copy + 'static, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]