#[non_exhaustive]pub enum GlInternalFormat {
Show 25 variants
Unspecified,
R8,
R8Snorm,
R8Ui,
R8I,
R16,
R16F,
R16Ui,
R16I,
R32F,
Rg8,
Rg8Snorm,
Rg16,
Rg16F,
Rgba8,
Srgb8Alpha8,
Rgba8Snorm,
Rgb10A2,
Rgba16,
Rgba16F,
Rgba32F,
R11fG11fB10f,
Bgra8,
Depth16,
Depth24Stencil8,
}Expand description
GL sized internal-format enum the texture was created with — only the subset that a video pipeline ever surfaces.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified
R8
R8Snorm
R8Ui
R8I
R16
R16F
R16Ui
R16I
R32F
Rg8
Rg8Snorm
Rg16
Rg16F
Rgba8
Srgb8Alpha8
Rgba8Snorm
Rgb10A2
Rgba16
Rgba16F
Rgba32F
R11fG11fB10f
Bgra8
Depth16
Depth24Stencil8
Implementations§
Source§impl GlInternalFormat
impl GlInternalFormat
Sourcepub const fn to_gl_enum(self) -> u32
pub const fn to_gl_enum(self) -> u32
The matching GL_* enum value, or 0 for Unspecified.
Trait Implementations§
Source§impl Clone for GlInternalFormat
impl Clone for GlInternalFormat
impl Copy for GlInternalFormat
Source§impl Debug for GlInternalFormat
impl Debug for GlInternalFormat
impl Eq for GlInternalFormat
Source§impl Hash for GlInternalFormat
impl Hash for GlInternalFormat
Source§impl PartialEq for GlInternalFormat
impl PartialEq for GlInternalFormat
impl StructuralPartialEq for GlInternalFormat
Auto Trait Implementations§
impl Freeze for GlInternalFormat
impl RefUnwindSafe for GlInternalFormat
impl Send for GlInternalFormat
impl Sync for GlInternalFormat
impl Unpin for GlInternalFormat
impl UnsafeUnpin for GlInternalFormat
impl UnwindSafe for GlInternalFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.