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): numberimport { splatTileOffsets } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
counts | Uint32Array | |
offsets | Uint32Array |
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.