Module vertex

Source
Expand description

Built-in vertex formats.

Structs§

AttrGenIter
An iterator adapter that generates a list of attributes with given formats and names
AttrUuid
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.
PosColorNorm
Vertex format with position, color and normal attributes.
PosNorm
Vertex format with position and normal attributes.
PosNormTangTex
Vertex format with position, normal, tangent, and UV texture coordinate attributes.
PosNormTex
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
VertexFormat
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.