Enum gltf_json::mesh::Semantic [−][src]
pub enum Semantic {
Positions,
Normals,
Tangents,
Colors(u32),
TexCoords(u32),
Joints(u32),
Weights(u32),
}Vertex attribute semantic name.
Variants
PositionsXYZ vertex positions.
NormalsXYZ vertex normals.
TangentsXYZW vertex tangents where the w component is a sign value indicating the
handedness of the tangent basis.
Colors(u32)RGB or RGBA vertex color.
TexCoords(u32)UV texture co-ordinates.
Joints(u32)Joint indices.
Weights(u32)Joint weights.
Trait Implementations
impl Clone for Semantic[src]
impl Clone for Semanticfn clone(&self) -> Semantic[src]
fn clone(&self) -> SemanticReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Semantic[src]
impl Debug for Semanticfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for Semantic[src]
impl Eq for Semanticimpl Hash for Semantic[src]
impl Hash for Semanticfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for Semantic[src]
impl PartialEq for Semanticfn eq(&self, other: &Semantic) -> bool[src]
fn eq(&self, other: &Semantic) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Semantic) -> bool[src]
fn ne(&self, other: &Semantic) -> boolThis method tests for !=.
impl Serialize for Semantic[src]
impl Serialize for Semanticfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl ToString for Semantic[src]
impl ToString for Semantic