Expand description
Vertex and instance attribute types.
This module defines the DataType trait (implemented for all primitive
numeric types and their fixed-size arrays), the ATTRInfo / ATTRName
descriptors, and a set of concrete attribute containers:
Pos3DATTR,Pos2DATTR— positionColATTR— colour (RGBA)UVMATTR— UV / texture coordinatesNrmATTR— normal vectorsIndATTR— index bufferRot3DATTR,Rot2DATTR— rotation (quaternion / angle)Scale3DATTR,Scale2DATTR— scaleCustomATTR— user-defined arbitrary attribute data
Structs§
- ATTR
Info - Describes a single vertex or instance attribute: name, GL type, byte size, element count.
- ColATTR
- CustomATTR
- User-defined vertex or instance attribute with arbitrary byte data.
- IndATTR
- NrmATTR
- Pos2DATTR
- Pos3DATTR
- Rot2DATTR
- Rot3DATTR
- Scale2DATTR
- Scale3DATTR
- UVMATTR
Enums§
- ATTR
Name - Discriminated name for a vertex or instance attribute.
Traits§
- Data
Type - Trait for types that can be used as vertex or instance attribute data.