const schemaToAggregate: (
schema: ArchetypeSchema,
attributes: Record<string, AggregateValue>,
refs?: Record<string,
{ current:
| number
| Int8Array
| Uint8Array
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array }>,
allocInstances?: number,
allocVertices?: number,
allocIndices?: number,
) => CPUAggregate
Create an aggregate for a schema and its attributes / refs
packages / core / src / archetype.ts