Enum gl_helpers::TextureKind
source · pub enum TextureKind {
Texture1D,
Texture2D,
Texture3D,
Texture1DArray,
Texture2DArray,
TextureRectangle,
TextureCubeMap,
TextureCubeMapArray,
TextureBuffer,
Texture2DMultiSameple,
Texture2DMultiSamepleArray,
}
Variants
Texture1D
Texture2D
Texture3D
Texture1DArray
Texture2DArray
TextureRectangle
TextureCubeMap
TextureCubeMapArray
TextureBuffer
Texture2DMultiSameple
Texture2DMultiSamepleArray
Trait Implementations
sourceimpl Clone for TextureKind
impl Clone for TextureKind
sourcefn clone(&self) -> TextureKind
fn clone(&self) -> TextureKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TextureKind
impl Debug for TextureKind
sourceimpl<'a> From<&'a TextureKind> for GLenum
impl<'a> From<&'a TextureKind> for GLenum
sourcefn from(texture_kind: &'a TextureKind) -> Self
fn from(texture_kind: &'a TextureKind) -> Self
Converts to this type from the input type.
sourceimpl From<TextureKind> for GLenum
impl From<TextureKind> for GLenum
sourcefn from(texture_kind: TextureKind) -> Self
fn from(texture_kind: TextureKind) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for TextureKind
impl From<u32> for TextureKind
sourceimpl Hash for TextureKind
impl Hash for TextureKind
sourceimpl Ord for TextureKind
impl Ord for TextureKind
sourcefn cmp(&self, other: &TextureKind) -> Ordering
fn cmp(&self, other: &TextureKind) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TextureKind> for TextureKind
impl PartialEq<TextureKind> for TextureKind
sourcefn eq(&self, other: &TextureKind) -> bool
fn eq(&self, other: &TextureKind) -> bool
sourceimpl PartialOrd<TextureKind> for TextureKind
impl PartialOrd<TextureKind> for TextureKind
sourcefn partial_cmp(&self, other: &TextureKind) -> Option<Ordering>
fn partial_cmp(&self, other: &TextureKind) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TextureKind
impl Eq for TextureKind
impl StructuralEq for TextureKind
impl StructuralPartialEq for TextureKind
Auto Trait Implementations
impl RefUnwindSafe for TextureKind
impl Send for TextureKind
impl Sync for TextureKind
impl Unpin for TextureKind
impl UnwindSafe for TextureKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more