Enum mod3d_base::VertexAttr
source · pub enum VertexAttr {
Indices,
Position,
Normal,
Color,
Tangent,
Joints,
Weights,
TexCoords0,
TexCoords1,
TexCoords2,
}Expand description
A VertexAttr is a possible vertex attribute that can be used by a renderer; a vertex always has a position attribute, but additional attributes may or maynot be provided by a model
Variants§
Indices
Indices
Position
Position (3xf32) of the point
Normal
Normal (3xf32) at the point
Color
Color at the point (4xf32)
Tangent
Tangent at the point (4xf32?)
Joints
A set of joints (n x int)
Weights
Weights (n x f16?) to apply to each bone[joint[i]]
TexCoords0
Texture coordinates (2 x f32)
TexCoords1
Texture coordinates (2 x f32)
TexCoords2
Texture coordinates (2 x f32)
Trait Implementations§
source§impl Clone for VertexAttr
impl Clone for VertexAttr
source§fn clone(&self) -> VertexAttr
fn clone(&self) -> VertexAttr
Returns a copy 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 moresource§impl Debug for VertexAttr
impl Debug for VertexAttr
source§impl<'de> Deserialize<'de> for VertexAttr
impl<'de> Deserialize<'de> for VertexAttr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for VertexAttr
impl PartialEq for VertexAttr
source§impl Serialize for VertexAttr
impl Serialize for VertexAttr
impl Copy for VertexAttr
impl Eq for VertexAttr
impl StructuralPartialEq for VertexAttr
Auto Trait Implementations§
impl Freeze for VertexAttr
impl RefUnwindSafe for VertexAttr
impl Send for VertexAttr
impl Sync for VertexAttr
impl Unpin for VertexAttr
impl UnwindSafe for VertexAttr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)