[][src]Trait rendy_mesh::AsVertex

pub trait AsVertex: Debug + PartialEq + PartialOrd + Copy + Sized + Send + Sync + 'static {
    const VERTEX: VertexFormat<'static>;
    fn attribute<F>() -> Attribute
    where
        F: AsAttribute,
        Self: WithAttribute<F>
, { ... } }

Trait implemented by all valid vertex formats.

Associated Constants

const VERTEX: VertexFormat<'static>

List of all attributes formats with name and offset.

Loading content...

Provided methods

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 

Returns attribute of vertex by type

Loading content...

Implementors

impl AsVertex for PosColor[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for PosColorNorm[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for PosNorm[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for PosNormTangTex[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for PosNormTex[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for PosTex[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl AsVertex for Transform[src]

It should be AsAttribute with multiple locations occupied. But rust doesn't allow constructing static slices with generic size.

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

impl<T> AsVertex for T where
    T: AsAttribute
[src]

fn attribute<F>() -> Attribute where
    F: AsAttribute,
    Self: WithAttribute<F>, 
[src]

Loading content...