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).
Permutation
The permutation of a buffer containing vertex attribute data. The Permutation maps the layout of an input buffer’s fields to the input registers used in the picasso shader.

Enums§

Format
The data format of an attribute.
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.