Struct amethyst_renderer::PosColor[][src]

#[repr(C)]
pub struct PosColor { pub position: [f32; 3], pub color: [f32; 4], }

Vertex format with position and RGBA8 color attributes.

Fields

Position of the vertex in 3D space.

RGBA color value of the vertex.

Trait Implementations

impl Clone for PosColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PosColor
[src]

impl Debug for PosColor
[src]

Formats the value using the given formatter. Read more

impl PartialEq for PosColor
[src]

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

This method tests for !=.

impl Pod for PosColor
[src]

impl VertexFormat for PosColor
[src]

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

List of all attributes formats with name and offset.

Returns the size of a single vertex in bytes.

Returns attribute of vertex by type

impl With<Position> for PosColor
[src]

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

Individual format of the attribute for this vertex format

impl With<Color> for PosColor
[src]

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

Individual format of the attribute for this vertex format

Auto Trait Implementations

impl Send for PosColor

impl Sync for PosColor