Trait amethyst_renderer::VertexFormat[][src]

pub trait VertexFormat: Pod + Sized + Send + Sync {
    const ATTRIBUTES: Attributes<'static>;
    fn size() -> usize { ... }
fn attribute<F>() -> AttributeFormat
    where
        F: Attribute,
        Self: With<F>
, { ... } }

Trait implemented by all valid vertex formats.

Associated Constants

List of all attributes formats with name and offset.

Provided Methods

Returns the size of a single vertex in bytes.

Returns attribute of vertex by type

Implementors