The .drft container · interface

DtexMaterial

Explained in The .drft container.

interface DtexMaterial
import type { DtexMaterial } from '@driftengine/drft';

Properties

NameTypeDescription
latentWidthnumber
latentHeightnumber
latentComponentsnumber
channelsUint32Array(semanticIndex << 4) | component per channel.
nodesUint32ArrayFour words a node: op, a, b, out.
resultRegisternumber
addressModenumber
networkInputsnumber
networkOutputsnumber
hiddenUint32Array
weightsFloat32Array
tileOffsetUint32Array
tileLengthUint32Array
tileHashUint32ArrayTwo words a tile, high first, as hashTile splits its 64 bits.
tileSizenumberTexels on a tile's edge, or 0 where the payload is one row-major image.
More

A grid rather than a count, because what streams is a rectangle of texels and a reader has to be able to say which one it is looking at.

latentUint8Array