Struct bgfx::VertexDeclBuilder [] [src]

pub struct VertexDeclBuilder {
    // some fields omitted
}

Builder for VertexDecl instances.

Methods

impl VertexDeclBuilder

fn add(&mut self, attrib: Attrib, count: u8, kind: AttribType) -> &mut Self

Adds a field to the structure descriptor. See VertexDecl::new for an example.

fn end(&mut self) -> VertexDecl

Finalizes the construction of the VertexDecl.

fn skip(&mut self, bytes: u8) -> &mut Self

Indicates a gap in the vertex structure.