Renderer · function
countSplatTiles
How many splats each tile holds, and how many entries the lists need in total.
Explained in Hello world.
function countSplatTiles(bins: ArrayLike<number>, count: number, width: number, height: number, counts: Uint32Array, tilesPerSplat?: Uint32Array): numberimport { countSplatTiles } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
bins | ArrayLike<number> | |
count | number | |
width | number | |
height | number | |
counts | Uint32Array | |
tilesPerSplat? | Uint32Array |
In depth
counts is cleared here rather than by the caller: a count buffer reused across steps without
clearing grows without bound, and the lists then run off the end of themselves.