const allocateSchema: (
schema: Record<string, DataField> | ArchetypeSchema,
allocInstances?: number,
allocVertices?: number,
allocIndices?: number,
hasSegments?: boolean,
predicate?: (prop: string) => boolean,
) => {
fields: Record<string, FieldArray>,
attributes: Record<string, TypedArray>,
archetype: number,
}
Allocate separate field arrays for a schema
packages / core / src / archetype.ts