API

Interface IKhronosTextureContainer2Options

Options for the KTX2 decoder

interface IKhronosTextureContainer2Options {
    binariesAndModulesContainer?: {
        jsDecoderModule?: any;
        jsMSCTranscoder?: any;
        wasmBaseUrl?: any;
        wasmMSCTranscoder?: any;
        wasmUASTCToASTC?: any;
        wasmUASTCToBC7?: any;
        wasmUASTCToR8_UNORM?: any;
        wasmUASTCToRG8_UNORM?: any;
        wasmUASTCToRGBA_SRGB?: any;
        wasmUASTCToRGBA_UNORM?: any;
        wasmZSTDDecoder?: any;
    };
    numWorkers?: number;
    workerPool?: AutoReleaseWorkerPool;
}
Index
binariesAndModulesContainer?: {
    jsDecoderModule?: any;
    jsMSCTranscoder?: any;
    wasmBaseUrl?: any;
    wasmMSCTranscoder?: any;
    wasmUASTCToASTC?: any;
    wasmUASTCToBC7?: any;
    wasmUASTCToR8_UNORM?: any;
    wasmUASTCToRG8_UNORM?: any;
    wasmUASTCToRGBA_SRGB?: any;
    wasmUASTCToRGBA_UNORM?: any;
    wasmZSTDDecoder?: any;
}

Optional container for the KTX2 decoder module and its dependencies. If set, the module will be used from this container and the URLs will be ignored.

numWorkers?: number

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

Worker pool to use for async operations. If set, numWorkers will be ignored.