pub fn gl_primitive_enum(&self) -> GLenum {
        match *self {
            TextureFormat::RGBA_F32 | TextureFormat::RGB_F32 | TextureFormat::R_F32 => gl::FLOAT,
            TextureFormat::RGBA_F16 | TextureFormat::RGB_F16 | TextureFormat::R_F16 => gl::FLOAT,
            TextureFormat::RGBA_8 | TextureFormat::RGB_8 | TextureFormat::R_8 => gl::UNSIGNED_BYTE,
        }
    }
/// The OpenGL primitive associated with this color format.
The OpenGL primitive associated with this color format.
The OpenGL primitive associated with this color format .
pub fn gl_primitive_enum(&self) -> GLenum {
        match *self {
            TextureFormat::RGBA_F32 | TextureFormat::RGB_F32 | TextureFormat::R_F32 => gl::FLOAT,
            TextureFormat::RGBA_F16 | TextureFormat::RGB_F16 | TextureFormat::R_F16 => gl::FLOAT,
            TextureFormat::RGBA_8 | TextureFormat::RGB_8 | TextureFormat::R_8 => gl::UNSIGNED_BYTE,
        }
    }
pub fn gl_primitive_enum ( & self ) -> GLenum { match * self { TextureFormat :: RGBA_F32 | TextureFormat :: RGB_F32 | TextureFormat :: R_F32 => gl :: FLOAT , TextureFormat :: RGBA_F16 | TextureFormat :: RGB_F16 | TextureFormat :: R_F16 => gl :: FLOAT , TextureFormat :: RGBA_8 | TextureFormat :: RGB_8 | TextureFormat :: R_8 => gl :: UNSIGNED_BYTE , } }
The OpenGL primitive associated with this color format.
The OpenGL primitive associated with this color format .
&self
&self