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
impl PartialEq for BufferUsage
[src]
fn eq(&self, __arg_0: &BufferUsage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for BufferUsage
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for BufferUsage
[src]
impl Debug for BufferUsage
[src]
impl Clone for BufferUsage
[src]
fn clone(&self) -> BufferUsage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more