#[repr(u32)]pub enum TextureType {
Show 29 variants
None = 0,
Diffuse = 1,
Specular = 2,
Ambient = 3,
Emissive = 4,
Height = 5,
Normals = 6,
Shininess = 7,
Opacity = 8,
Displacement = 9,
LightMap = 10,
Reflection = 11,
BaseColor = 12,
NormalCamera = 13,
EmissionColor = 14,
Metalness = 15,
Roughness = 16,
AmbientOcclusion = 17,
Unknown = 18,
Sheen = 19,
ClearCoat = 20,
Transmission = 21,
Force32bit = 2_147_483_647,
MayaBase = 22,
MayaSpecular = 23,
MayaSpecularColor = 24,
MayaSpecularRoughness = 25,
Anisotropy = 26,
GltfMetallicRoughness = 27,
}Variants§
None = 0
Diffuse = 1
Specular = 2
Ambient = 3
Emissive = 4
Height = 5
Normals = 6
Shininess = 7
Opacity = 8
Displacement = 9
LightMap = 10
Reflection = 11
BaseColor = 12
NormalCamera = 13
EmissionColor = 14
Metalness = 15
Roughness = 16
AmbientOcclusion = 17
Unknown = 18
Sheen = 19
ClearCoat = 20
Transmission = 21
Force32bit = 2_147_483_647
MayaBase = 22
MayaSpecular = 23
MayaSpecularColor = 24
MayaSpecularRoughness = 25
Anisotropy = 26
GltfMetallicRoughness = 27
Trait Implementations§
Source§impl Clone for TextureType
impl Clone for TextureType
Source§fn clone(&self) -> TextureType
fn clone(&self) -> TextureType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextureType
Source§impl Debug for TextureType
impl Debug for TextureType
impl Eq for TextureType
Source§impl FromPrimitive for TextureType
impl FromPrimitive for TextureType
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl Hash for TextureType
impl Hash for TextureType
Source§impl IntoEnumIterator for TextureType
impl IntoEnumIterator for TextureType
type Iterator = TextureTypeIter
fn iter() -> TextureTypeIter ⓘ
Source§impl PartialEq for TextureType
impl PartialEq for TextureType
impl StructuralPartialEq for TextureType
Source§impl TryFrom<u32> for TextureType
impl TryFrom<u32> for TextureType
Source§type Error = TryFromPrimitiveError<TextureType>
type Error = TryFromPrimitiveError<TextureType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TextureType
impl TryFromPrimitive for TextureType
const NAME: &'static str = "TextureType"
type Primitive = u32
type Error = TryFromPrimitiveError<TextureType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for TextureType
impl RefUnwindSafe for TextureType
impl Send for TextureType
impl Sync for TextureType
impl Unpin for TextureType
impl UnsafeUnpin 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