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.