Renderer · function

splatTileOffsets

Where each tile's list begins: the exclusive prefix sum of the counts. Answers the total.

Explained in Hello world.

function splatTileOffsets(counts: Uint32Array, offsets: Uint32Array): number
import { splatTileOffsets } from '@driftengine/core';

Parameters

ParameterTypeDescription
countsUint32Array
offsetsUint32Array

In depth

A tile with no splats gets a zero-length list at a real offset rather than no entry at all, because the offsets are indexed by tile and dropping an empty one moves every later tile's list.