Interface IDracoCompressionOptions
interface IDracoCompressionOptions {
numWorkers?: number;
wasmBinary?: ArrayBuffer;
workerPool?: WorkerPool;
}
numWorkers?: number;
wasmBinary?: ArrayBuffer;
workerPool?: WorkerPool;
}
Hierarchy
- Pick<IDracoCodecConfiguration, "numWorkers" | "wasmBinary" | "workerPool">
- IDracoCompressionOptions
Properties
Optionalnum Workers
numWorkers?: number
The number of workers for async operations. Specify 0 to disable web workers and run synchronously in the current context.
Optionalwasm Binary
wasmBinary?: ArrayBuffer
Optional ArrayBuffer of the WebAssembly binary. If provided it will be used instead of loading the binary from wasmBinaryUrl.
Optionalworker Pool
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.
Options for Draco compression