#[non_exhaustive]pub enum GlTextureTarget {
Texture2D,
Texture2DArray,
Texture3D,
CubeMap,
Rectangle,
Renderbuffer,
}Expand description
GL bind target the texture was allocated with. Maps 1:1 onto the
matching GL_TEXTURE_* enum value.
GL_TEXTURE_EXTERNAL_OES is intentionally absent — those are
surfaced through the Android MediaCodec / AImage paths or the
Linux EGL_EXT_image_external bridge, not directly as a
GpuResource::GlTextureHandle. Importers take the OES target through
their own import description instead.
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.
Texture2D
GL_TEXTURE_2D.
Texture2DArray
GL_TEXTURE_2D_ARRAY.
Texture3D
GL_TEXTURE_3D.
CubeMap
GL_TEXTURE_CUBE_MAP.
Rectangle
GL_TEXTURE_RECTANGLE (desktop GL only).
Renderbuffer
GL_RENDERBUFFER.
Implementations§
Source§impl GlTextureTarget
impl GlTextureTarget
Sourcepub const fn to_gl_enum(self) -> u32
pub const fn to_gl_enum(self) -> u32
The matching GL_TEXTURE_* / GL_RENDERBUFFER enum value.
Trait Implementations§
Source§impl Clone for GlTextureTarget
impl Clone for GlTextureTarget
impl Copy for GlTextureTarget
Source§impl Debug for GlTextureTarget
impl Debug for GlTextureTarget
impl Eq for GlTextureTarget
Source§impl Hash for GlTextureTarget
impl Hash for GlTextureTarget
Source§impl PartialEq for GlTextureTarget
impl PartialEq for GlTextureTarget
impl StructuralPartialEq for GlTextureTarget
Auto Trait Implementations§
impl Freeze for GlTextureTarget
impl RefUnwindSafe for GlTextureTarget
impl Send for GlTextureTarget
impl Sync for GlTextureTarget
impl Unpin for GlTextureTarget
impl UnsafeUnpin for GlTextureTarget
impl UnwindSafe for GlTextureTarget
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.