Enum TextureType
#[repr(i32)]pub enum TextureType {
TwoDimensional = 0,
TwoDimensionalArray = 1,
TwoDimensionalMultisample = 2,
TwoDimensionalMultisampleArray = 3,
ThreeDimensional = 4,
CubeMap = 5,
CubeMapArray = 6,
External = 7,
Count = 8,
Invalid = 9,
}Expand description
Texture type.
Variants§
TwoDimensional = 0
Two dimensional texture.
TwoDimensionalArray = 1
Reserved for future use. Do not use. Two dimensional array texture.
TwoDimensionalMultisample = 2
Reserved for future use. Do not use. Two dimensional multisample texture.
TwoDimensionalMultisampleArray = 3
Reserved for future use. Do not use. Two dimensional multisample array texture.
ThreeDimensional = 4
Reserved for future use. Do not use. Three dimensionla texture.
CubeMap = 5
Cubemap texture
CubeMapArray = 6
Reserved for future use. Do not use. Cubemap array texture.
External = 7
External texture. Note: External textures are specific to OpenGL ES and EGL.
Count = 8
Number of valid texture targets.
Invalid = 9
Invalid texture target.
Implementations§
§impl TextureType
impl TextureType
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> TextureType
Trait Implementations§
§impl Clone for TextureType
impl Clone for TextureType
§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TextureType
impl Debug for TextureType
§impl Display for TextureType
impl Display for TextureType
§impl PartialEq for TextureType
impl PartialEq for TextureType
§impl VariantConstraint for TextureType
impl VariantConstraint for TextureType
§type DataArg<'a> = TextureType
type DataArg<'a> = TextureType
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = TextureType
type RetArg = TextureType
§fn as_arg(&self) -> <TextureType as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <TextureType as VariantConstraint>::DataArg<'_>
impl Copy for TextureType
impl Eq for TextureType
impl PropertyTypeConstraint for TextureType
impl StructuralPartialEq for TextureType
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnwindSafe for TextureType
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