Home > @esengine/ecs-framework-monorepo > SoAStorage > performVectorizedOperation
SoAStorage.performVectorizedOperation() method
执行向量化批量操作
Signature:
typescript
performVectorizedOperation(operation: (fieldArrays: Map<string, Float32Array | Float64Array | Int32Array>, activeIndices: number[]) => void): void;
Parameters
Parameter | Type | Description |
---|---|---|
operation | (fieldArrays: Map<string, Float32Array | Float64Array | Int32Array>, activeIndices: number[]) => void | 操作函数,接收字段数组和活跃索引 |
Returns:
void