[−][src]Trait rendy_mesh::AsVertex
Trait implemented by all valid vertex formats.
Associated Constants
const VERTEX: VertexFormat<'static>
List of all attributes formats with name and offset.
Provided methods
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
F: AsAttribute,
Self: WithAttribute<F>,
Returns attribute of vertex by type
Implementors
impl AsVertex for PosColor
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for PosColorNorm
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for PosNorm
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for PosNormTangTex
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for PosNormTex
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for PosTex
[src]
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl AsVertex for Transform
[src]
It should be AsAttribute
with multiple locations occupied.
But rust doesn't allow constructing static slices with generic size.
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,
impl<T> AsVertex for T where
T: AsAttribute,
[src]
T: AsAttribute,
const VERTEX: VertexFormat<'static>
[src]
fn attribute<F>() -> Attribute where
F: AsAttribute,
Self: WithAttribute<F>,
[src]
F: AsAttribute,
Self: WithAttribute<F>,