#[non_exhaustive]#[repr(u8)]pub enum TextureId {
None = 0,
BaseColor = 1,
Normal = 2,
Occlusion = 3,
Emission = 4,
MetallicRoughness = 5,
User0 = 6,
}Expand description
An enumeration of texures - that this crate particularly cares about
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.
None = 0
None
BaseColor = 1
The base color texture
Normal = 2
A normal texture
Occlusion = 3
The occlusion texture (as per Gltf)
Emission = 4
The emission texture (as per Gltf)
MetallicRoughness = 5
The metallic-roughness texture (as per Gltf)
User0 = 6
User 0
Implementations§
Source§impl TextureId
impl TextureId
pub fn of_material_aspect(m: MaterialAspect) -> Self
Trait Implementations§
impl Copy for TextureId
impl Eq for TextureId
impl StructuralPartialEq for TextureId
Auto Trait Implementations§
impl Freeze for TextureId
impl RefUnwindSafe for TextureId
impl Send for TextureId
impl Sync for TextureId
impl Unpin for TextureId
impl UnwindSafe for TextureId
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