Model loading · interface

DtexTiles

Where each tile's bytes sit in the latent payload, and what they hash to.

Explained in Importing models.

interface DtexTiles
import type { DtexTiles } from '@driftengine/assets';

Properties

NameTypeDescription
offsetreadonlyUint32Array
lengthreadonlyUint32Array
hashreadonlyUint32ArrayTwo words a tile, high first, as hashTile splits its 64 bits.
payloadreadonlyUint8ArrayThe payload the offsets index: tile-major, each tile's bytes in one run.