Model loading · type

AsyncInflate

Turn a deflate stream into bytes, eventually. What a browser can actually offer.

Explained in Importing models.

type AsyncInflate = (compressed: Uint8Array, expectedBytes: number) => Promise<Uint8Array>
import type { AsyncInflate } from '@driftengine/assets';