Enum gfx::device::BufferUsage [] [src]

pub enum BufferUsage {
    Static,
    Dynamic,
    Stream,
}

A hint as to how this buffer will be used.

The nature of these hints make them very implementation specific. Different drivers on different hardware will handle them differently. Only careful profiling will tell which is the best to use for a specific buffer.

Variants

Static

Once uploaded, this buffer will rarely change, but will be read from often.

Dynamic

This buffer will be updated "frequently", and will be read from multiple times between updates.

Stream

This buffer always or almost always be updated after each read.

Trait Implementations

Derived Implementations

impl PartialEq for BufferUsage

fn eq(&self, __arg_0: &BufferUsage) -> bool

fn ne(&self, __arg_0: &BufferUsage) -> bool

impl Hash for BufferUsage

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for BufferUsage

impl Debug for BufferUsage

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for BufferUsage

fn clone(&self) -> BufferUsage

fn clone_from(&mut self, source: &Self)

impl Copy for BufferUsage