fast-mesh-wasm
    Preparing search index...

    Interface DracoDecodeOptions

    Options of decodeDraco and importGLTFAsync.

    interface DracoDecodeOptions {
        decoderModule?: unknown;
        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).

    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.