#[repr(u8)]pub enum VertexAttr {
Position = 0,
Normal = 1,
Color = 2,
Tangent = 3,
Joints = 4,
Weights = 5,
TexCoords0 = 6,
TexCoords1 = 7,
TexCoords2 = 8,
}
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§
Position = 0
Position (3xf32) of the point
Normal = 1
Normal (3xf32) at the point
Color = 2
Color at the point (4xf32)
Tangent = 3
Tangent at the point (4xf32?)
Joints = 4
A set of joints (n x int)
Weights = 5
Weights (n x f16?) to apply to each bone[joint[i]]
TexCoords0 = 6
Texture coordinates (2 x f32)
TexCoords1 = 7
Texture coordinates (2 x f32)
TexCoords2 = 8
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 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 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 Ord for VertexAttr
impl Ord for VertexAttr
Source§fn cmp(&self, other: &VertexAttr) -> Ordering
fn cmp(&self, other: &VertexAttr) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for VertexAttr
impl PartialEq for VertexAttr
Source§impl PartialOrd for VertexAttr
impl PartialOrd 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