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): MeshletLevel
import { readMeshlets } from '@driftengine/drft';

Parameters

ParameterTypeDescription
bufferArrayBuffer
offsetnumber
byteLengthnumber

In depth

Views rather than copies, like every other chunk here, so a load allocates nothing beyond the object holding them.