#[repr(u32)]pub enum BufferUsage {
Stream = 35_040,
Static = 35_044,
Dynamic = 35_048,
}
Variants§
Stream = 35_040
The data store contents will be modified once and used at most a few times.
Static = 35_044
The data store contents will be modified once and used many times.
Dynamic = 35_048
The data store contents will be modified repeatedly and used many times.
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 From<BufferUsage> for u32
impl From<BufferUsage> for u32
Source§fn from(enum_value: BufferUsage) -> Self
fn from(enum_value: BufferUsage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BufferUsage
impl PartialEq for BufferUsage
Source§impl TryFrom<u32> for BufferUsage
impl TryFrom<u32> for BufferUsage
Source§type Error = TryFromPrimitiveError<BufferUsage>
type Error = TryFromPrimitiveError<BufferUsage>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BufferUsage
impl TryFromPrimitive for BufferUsage
const NAME: &'static str = "BufferUsage"
type Primitive = u32
type Error = TryFromPrimitiveError<BufferUsage>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BufferUsage
impl Eq for BufferUsage
impl StructuralPartialEq for BufferUsage
Auto Trait Implementations§
impl Freeze for BufferUsage
impl RefUnwindSafe for BufferUsage
impl Send for BufferUsage
impl Sync for BufferUsage
impl Unpin for BufferUsage
impl UnwindSafe for BufferUsage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more