The .drft container · interface
DtexMaterial
Explained in The .drft container.
interface DtexMaterialimport type { DtexMaterial } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
latentWidth | number | |
latentHeight | number | |
latentComponents | number | |
channels | Uint32Array | (semanticIndex << 4) | component per channel. |
nodes | Uint32Array | Four words a node: op, a, b, out. |
resultRegister | number | |
addressMode | number | |
networkInputs | number | |
networkOutputs | number | |
weights | Float32Array | |
tileOffset | Uint32Array | |
tileLength | Uint32Array | |
tileHash | Uint32Array | Two words a tile, high first, as hashTile splits its 64 bits. |
tileSize | number | Texels on a tile's edge, or 0 where the payload is one row-major image.MoreA 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. |
latent | Uint8Array |