Skip to main content

Type Alias: GPUVectorModelDrawBatchesOptions<Inputs>

GPUVectorModelDrawBatchesOptions<Inputs> = object

Defined in: modules/engine/src/model/gpu-vector-model-batches.ts:49

Per-draw options for rendering aligned vectors without creating table wrappers.

Type Parameters​

Inputs​

Inputs extends GPUVectorModelInputs = GPUVectorModelInputs

Properties​

onBatch?​

optional onBatch?: (batch) => void

Defined in: modules/engine/src/model/gpu-vector-model-batches.ts:58

Runs synchronously before each chunk draw. Managed uniforms use distinct aligned slots within this call; submit before reusing slots with different values in another call. External buffers remain caller-managed. Row offsets are cumulative.

Parameters​

batch​

GPUVectorModelBatch<NonNullable<Inputs[keyof Inputs]>["data"][number]>

Returns​

void


vectors​

vectors: Inputs

Defined in: modules/engine/src/model/gpu-vector-model-batches.ts:52