Module buffer

Source
Expand description

Configure vertex buffer objects to be sent to the GPU for rendering.

See the attrib module for details on how to describe the shape and type of the VBO data.

Structs§

Buffer
A handle to a VBO buffer in linear memory, to be used with Info. This handle is reference counted so can be cheaply cloned and used with mutliple Info instances without duplicating memory.
Info
Vertex buffer info. This struct is used to describe the shape of the buffer data to be sent to the GPU for rendering.

Enums§

Primitive
The geometric primitive to draw (i.e. what shapes the buffer data describes).

Traits§

BufferData
A buffer allocated in Linear memory.
Index
A type that can be used as an index for indexed drawing.