fast-mesh-wasm
    Preparing search index...

    Interface GltfImportOptions

    Options of importGLTFAsync: Draco decoding plus external buffers.

    interface GltfImportOptions {
        decoderModule?: unknown;
        resolveBuffer?: GltfBufferResolver;
        wasmBinary?: ArrayBuffer | Uint8Array<ArrayBufferLike>;
    }

    Hierarchy (View Summary)

    Index
    decoderModule?: unknown

    A ready draco3d decoder module, as createDecoderModule resolves. When omitted, one is created from the draco3d package and shared across calls. Pass one in to reuse a module (or to supply the .wasm in an environment the default lookup cannot reach, like a bundled Worker).

    resolveBuffer?: GltfBufferResolver

    Loads external (non-embedded) .bin buffers, by URI. Without one, an external buffer throws. Embedded data URIs and the GLB body chunk never consult it.

    wasmBinary?: ArrayBuffer | Uint8Array<ArrayBufferLike>

    The decoder .wasm bytes, forwarded to createDecoderModule when the shared module is created. Bundlers cannot always locate draco3d's own .wasm next to its glue (Vite workers, inlined builds): fetch the decoder asset (a ?url import of draco3d/draco_decoder.wasm) and pass its bytes here. Ignored when decoderModule is given.