Struct sfml::graphics::VertexBufferUsage
source · #[repr(transparent)]pub struct VertexBufferUsage(_);
Expand description
Usage specifiers for a VertexBuffer
If data is going to be updated once or more every frame,
set the usage to Stream
. If data is going to be set once and used
for a long time without being modified, set the usage to Static
.
For everything else Dynamic
should be a good compromise.
Implementations§
Trait Implementations§
source§impl Clone for VertexBufferUsage
impl Clone for VertexBufferUsage
source§fn clone(&self) -> VertexBufferUsage
fn clone(&self) -> VertexBufferUsage
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 VertexBufferUsage
impl Debug for VertexBufferUsage
source§impl Hash for VertexBufferUsage
impl Hash for VertexBufferUsage
source§impl PartialEq<VertexBufferUsage> for VertexBufferUsage
impl PartialEq<VertexBufferUsage> for VertexBufferUsage
source§fn eq(&self, other: &VertexBufferUsage) -> bool
fn eq(&self, other: &VertexBufferUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.