Struct amethyst_renderer::vertex::PosNormTangTex
[−]
#[repr(C)]pub struct PosNormTangTex { pub a_position: [f32; 3], pub a_normal: [f32; 3], pub a_tangent: [f32; 3], pub a_tex_coord: [f32; 2], }
Vertex format with position, normal, and UV texture coordinate attributes.
Fields
a_position: [f32; 3]
Position of the vertex in 3D space.
a_normal: [f32; 3]
Normal vector of the vertex.
a_tangent: [f32; 3]
Tangent vector of the vertex.
a_tex_coord: [f32; 2]
UV texture coordinates used by the vertex.
Trait Implementations
impl Clone for PosNormTangTex
fn clone(&self) -> PosNormTangTex
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for PosNormTangTex
impl Debug for PosNormTangTex
impl PartialEq for PosNormTangTex
fn eq(&self, __arg_0: &PosNormTangTex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PosNormTangTex) -> bool
This method tests for !=
.
impl Pod for PosNormTangTex
impl Structure<Format> for PosNormTangTex
impl VertexFormat for PosNormTangTex
type Attributes = [Attribute; 4]
Container for attributes of this format
type NamedAttributes = [(&'static str, Attribute); 4]
Container for name+attribute pairs of this format
fn attributes() -> Self::Attributes
Returns a list of all attributes specified in the vertex.
fn named_attributes<N: AttributeNames>() -> Self::NamedAttributes
Returns a list of all name+attribute pairs specified in the vertex. The caller provides attribute type -> Name mapping Read more
fn size() -> usize
Returns the size of a single vertex in bytes.
fn attribute<F>() -> Attribute where
Self: WithField<F>,
Self: WithField<F>,
Returns attribute of vertex by type
impl WithField<Position> for PosNormTangTex
fn field_attribute() -> Attribute
Query individual attribute of the field for this format
impl WithField<Normal> for PosNormTangTex
fn field_attribute() -> Attribute
Query individual attribute of the field for this format
impl WithField<Tangent> for PosNormTangTex
fn field_attribute() -> Attribute
Query individual attribute of the field for this format
impl WithField<TextureCoord> for PosNormTangTex
fn field_attribute() -> Attribute
Query individual attribute of the field for this format