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
const ATTRIBUTES: Attributes<'static>
List of all attributes formats with name and offset.
Provided Methods
fn size() -> usize
Returns the size of a single vertex in bytes.
fn attribute<F>() -> AttributeFormat where
F: Attribute,
Self: With<F>,
F: Attribute,
Self: With<F>,
Returns attribute of vertex by type
Implementors
impl<T> VertexFormat for Separate<T> where
T: Attribute,impl VertexFormat for PosColor
impl VertexFormat for PosTex
impl VertexFormat for PosNormTex
impl VertexFormat for PosNormTangTex