Module attrib

Source
Expand description

Configure vertex attributes.

This module has types and helpers for describing the shape/structure of vertex data to be sent to the GPU.

See the buffer module to use the vertex data itself.

Structs§

Index
An attribute index. This is the attribute’s actual index in the input buffer, and may correspond to any Register (or multiple) as input in the shader program.
Info
Vertex attribute info. This struct describes how vertex buffers are layed out and used (i.e. the shape of the vertex data).
Register
A shader input register, usually corresponding to a single vertex attribute (e.g. position or color). These are called v0, v1, … v15 in the picasso shader language.

Enums§

Format
The data format of an attribute.