Skip to main content

Module vertex

Module vertex 

Source
Expand description

Vertex layouts, instance data, and tessellation vertex constructors.

Structs§

InstanceData
Per-instance data for instanced rendering. Stores transform data previously duplicated across all vertices of a path/quad.
InstanceData3D
Per-instance data for 3D instanced rendering. Stores a 3×4 model matrix (4th row implied [0,0,0,1]), material overrides, and UV transform (scale + offset).
Vertex
Vertex3D
Vertex format for 3D mesh rendering. Matches VertexInput3D in WGSL shaders (locations 0-4, 9, 16-21). This is separate from Vertex to avoid layout conflicts with 2D rendering.