webgl_rc/
buffer_usage.rs

1use num_enum::{  IntoPrimitive,  TryFromPrimitive};
2use web_sys::WebGlRenderingContext as Context;
3
4#[repr(u32)]
5#[derive(Clone, Copy, Debug, TryFromPrimitive, IntoPrimitive, PartialEq, Eq)]
6pub enum BufferUsage {
7    /// The data store contents will be modified once and used at most a few times.
8    Stream = Context::STREAM_DRAW,
9    /// The data store contents will be modified once and used many times.
10    Static = Context::STATIC_DRAW,
11    /// The data store contents will be modified repeatedly and used many times.
12    Dynamic = Context::DYNAMIC_DRAW,
13}