const makeAggregator: (
schema: ArchetypeSchema,
) => (
device: GPUDevice,
initialItems: AggregateItem[],
allocInstances: number,
allocVertices: number,
allocIndices: number,
) => (
items: AggregateItem[],
count: number,
indexed: number,
instanced: number,
offsets: number[],
) => { count: number, sources: {
}, uploadRefs: () => void | null }
packages / workbench / src / hooks / useAggregator.ts