Module citro3d::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§

  • 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.
  • Vertex attribute info. This struct describes how vertex buffers are layed out and used (i.e. the shape of the vertex data).
  • 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§

  • The data format of an attribute.