Struct amethyst_renderer::PosNormTex [] [src]

#[repr(C)]
pub struct PosNormTex { pub position: [f32; 3], pub normal: [f32; 3], pub 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.

UV texture coordinates used by the vertex.

Trait Implementations

impl Clone for PosNormTex
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for PosNormTex
[src]

impl Debug for PosNormTex
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for PosNormTex
[src]

[src]

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

[src]

This method tests for !=.

impl Pod for PosNormTex
[src]

impl VertexFormat for PosNormTex
[src]

ATTRIBUTES: Attributes<'static> = &[(<Position>::NAME, <Self as With::<Position>>::FORMAT),
  (<Normal>::NAME, <Self as With::<Normal>>::FORMAT),
  (<TexCoord>::NAME, <Self as With::<TexCoord>>::FORMAT)]

List of all attributes formats with name and offset.

[src]

Returns the size of a single vertex in bytes.

[src]

Returns attribute of vertex by type

impl With<Position> for PosNormTex
[src]

FORMAT: AttributeFormat = Element{offset: 0, format: <Position>::FORMAT,}

Individual format of the attribute for this vertex format

impl With<Normal> for PosNormTex
[src]

FORMAT: AttributeFormat = Element{offset: <Position>::SIZE, format: <Normal>::FORMAT,}

Individual format of the attribute for this vertex format

impl With<TexCoord> for PosNormTex
[src]

FORMAT: AttributeFormat = Element{offset: <Position>::SIZE + <Normal>::SIZE,
        format: <TexCoord>::FORMAT,}

Individual format of the attribute for this vertex format