API

Interface ThinInstanceData

CPU-side data backing a thin-instanced mesh: world matrices, optional colors, and GPU sync state.

interface ThinInstanceData {
    colors?: Float32Array<ArrayBufferLike> | null;
    count: number;
    matrices: Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>;
}
Index
colors?: Float32Array<ArrayBufferLike> | null

Optional per-instance RGBA colors (4 floats per instance).

count: number

Active instance count.

matrices: Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike>

CPU-side instance world matrices (16 floats per instance). Storage may be Float32Array (default) or Float64Array (after an HPM engine is constructed; the caller built the slab via allocateMat4()). The GPU upload path in thin-instance-gpu.ts handles both (REQ-API-3, D5).