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

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

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>> where Self: Sized

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

Implementors