Expand description
Built-in vertex formats.
Structs§
- Attr
GenIter - An iterator adapter that generates a list of attributes with given formats and names
- Attr
Uuid - A unique identifier for vertex attribute of given name, format and array index.
- Attribute
- Vertex attribute type.
- Color
- Type for color attribute of vertex
- Model
- Full vertex transformation attribute. Typically provided on per-instance basis. It takes 4 attribute locations.
- Normal
- Type for texture coord attribute of vertex
- PosColor
- Vertex format with position and RGBA8 color attributes.
- PosColor
Norm - Vertex format with position, color and normal attributes.
- PosNorm
- Vertex format with position and normal attributes.
- PosNorm
Tang Tex - Vertex format with position, normal, tangent, and UV texture coordinate attributes.
- PosNorm
Tex - Vertex format with position, normal and UV texture coordinate attributes.
- PosTex
- Vertex format with position and UV texture coordinate attributes.
- Position
- Type for position attribute of vertex.
- Tangent
- Type for tangent attribute of vertex. W represents handedness and should always be 1 or -1
- TexCoord
- Type for texture coord attribute of vertex
- Vertex
Format - Vertex format contains information to initialize graphics pipeline Attributes must be sorted by offset.
Traits§
- AsAttribute
- Trait for vertex attributes to implement
- AsAttributes
- Represent types that can be interpreted as list of vertex attributes.
- AsVertex
- Trait implemented by all valid vertex formats.
Functions§
- attribute_
uuid - Retreive a unique identifier for vertex attribute of given name, format and array index.