Trait gfx::render::mesh::VertexFormat [] [src]

pub trait VertexFormat {
    fn generate<R: Resources>(buffer: &Buffer<R, Self>) -> Vec<Attribute<R>>;
}

A trait implemented automatically for user vertex structure by `#[vertex_format] attribute

Required Methods

fn generate<R: Resources>(buffer: &Buffer<R, Self>) -> Vec<Attribute<R>>

Create the attributes for this type, using the given buffer.

Implementors