The .drft container · function
readMeshlets
The level an MSHL chunk carries, as views over the fetched buffer.
Explained in The .drft container.
function readMeshlets(buffer: ArrayBuffer, offset: number, byteLength: number): MeshletLevelimport { readMeshlets } from '@driftengine/drft';Parameters
| Parameter | Type | Description |
|---|---|---|
buffer | ArrayBuffer | |
offset | number | |
byteLength | number |
In depth
Views rather than copies, like every other chunk here, so a load allocates nothing beyond the object holding them.