Skip to main content

Module instancing

Module instancing 

Source
Expand description

Instanced rendering — per-instance transform and color data.

InstanceData provides a standard per-instance layout (model matrix + color tint) compatible with the vertex attribute locations used by AGNOS renderers. InstanceBuffer wraps a GPU buffer with dynamic growth for frame-varying instance counts.

Structs§

InstanceBuffer
Instance buffer — holds per-instance data on the GPU with dynamic growth.
InstanceData
Per-instance data: model matrix (column-major 4x4) + color tint.