Variable BasisToolsConst
BasisTools: {
GetInternalFormatFromBasisFormat: (
basisFormat: number,
engine: AbstractEngine,
) => number;
JSModuleURL: string;
LoadTextureFromTranscodeResult: (
texture: InternalTexture,
transcodeResult: TranscodeResult,
) => void;
TranscodeAsync: (
data: ArrayBuffer | ArrayBufferView<ArrayBufferLike>,
config: BasisTranscodeConfiguration,
) => Promise<TranscodeResult>;
WasmModuleURL: string;
} = ...
GetInternalFormatFromBasisFormat: (
basisFormat: number,
engine: AbstractEngine,
) => number;
JSModuleURL: string;
LoadTextureFromTranscodeResult: (
texture: InternalTexture,
transcodeResult: TranscodeResult,
) => void;
TranscodeAsync: (
data: ArrayBuffer | ArrayBufferView<ArrayBufferLike>,
config: BasisTranscodeConfiguration,
) => Promise<TranscodeResult>;
WasmModuleURL: string;
} = ...
Type Declaration
-
GetInternalFormatFromBasisFormat: (basisFormat: number, engine: AbstractEngine) => number
Get the internal format to be passed to texImage2D corresponding to the .basis format value
-
JSModuleURL: string
URL to use when loading the basis transcoder
-
LoadTextureFromTranscodeResult: (texture: InternalTexture, transcodeResult: TranscodeResult) => void
Loads a texture from the transcode result
-
TranscodeAsync: (
data: ArrayBuffer | ArrayBufferView<ArrayBufferLike>,
config: BasisTranscodeConfiguration,
) => Promise<TranscodeResult>Transcodes a loaded image file to compressed pixel data
-
WasmModuleURL: string
URL to use when loading the wasm module for the transcoder
Used to load .Basis files See https://github.com/BinomialLLC/basis_universal/tree/master/webgl