Enum tetra::graphics::mesh::BufferUsage
source · pub enum BufferUsage {
Static,
Dynamic,
Stream,
}
Expand description
The expected usage of a GPU buffer.
The GPU may optionally use this to optimize data storage and access.
Variants§
Static
The buffer’s data is not expected to change after creation.
Dynamic
The buffer’s data is expected to change occasionally after creation.
Stream
The buffer’s data is expected to change every frame.
Trait Implementations§
source§impl Clone for BufferUsage
impl Clone for BufferUsage
source§fn clone(&self) -> BufferUsage
fn clone(&self) -> BufferUsage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BufferUsage
impl Debug for BufferUsage
source§impl PartialEq<BufferUsage> for BufferUsage
impl PartialEq<BufferUsage> for BufferUsage
source§fn eq(&self, other: &BufferUsage) -> bool
fn eq(&self, other: &BufferUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.