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

Position of the vertex in 3D space.

Normal vector of the vertex.

Tangent vector of the vertex.

UV texture coordinates used by the vertex.

Trait Implementations

impl Clone for PosNormTangTex

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PosNormTangTex

impl Debug for PosNormTangTex

Formats the value using the given formatter.

impl PartialEq for PosNormTangTex

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Pod for PosNormTangTex

impl Structure<Format> for PosNormTangTex

Get the layout of an element by name.

impl VertexFormat for PosNormTangTex

Container for attributes of this format

Container for name+attribute pairs of this format

Returns a list of all attributes specified in the vertex.

Returns a list of all name+attribute pairs specified in the vertex. The caller provides attribute type -> Name mapping Read more

Returns the size of a single vertex in bytes.

Returns attribute of vertex by type

impl WithField<Position> for PosNormTangTex

Query individual attribute of the field for this format

impl WithField<Normal> for PosNormTangTex

Query individual attribute of the field for this format

impl WithField<Tangent> for PosNormTangTex

Query individual attribute of the field for this format

impl WithField<TextureCoord> for PosNormTangTex

Query individual attribute of the field for this format