Enum gfx::BufferUsage
[−]
pub enum BufferUsage { Const, 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
Const
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<BufferUsage> for BufferUsage
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
impl Eq for BufferUsage
impl Debug for BufferUsage
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for BufferUsage
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