API

Interface IDracoCompressionOptions

Options for Draco compression

interface IDracoCompressionOptions {
    numWorkers?: number;
    wasmBinary?: ArrayBuffer;
    workerPool?: WorkerPool;
}

Hierarchy

  • Pick<IDracoCodecConfiguration, "numWorkers" | "wasmBinary" | "workerPool">
    • IDracoCompressionOptions
Index
numWorkers?: number

The number of workers for async operations. Specify 0 to disable web workers and run synchronously in the current context.

wasmBinary?: ArrayBuffer

Optional ArrayBuffer of the WebAssembly binary. If provided it will be used instead of loading the binary from wasmBinaryUrl.

workerPool?: WorkerPool

Optional worker pool to use for async encoding/decoding. If provided, the worker pool will be used as is: no Draco scripts will be loaded, and numWorkers will be ignored.