Class BasisTools
Hierarchy
- BasisTools
Index
Properties
Static JSModuleURLSearch playground for JSModuleURL
URL to use when loading the basis transcoder
Static Wasm ModuleURLSearch playground for WasmModuleURL
URL to use when loading the wasm module for the transcoder
Methods
Static Get Internal Format From Basis FormatSearch playground for GetInternalFormatFromBasisFormat
-
Get the internal format to be passed to texImage2D corresponding to the .basis format value
Parameters
-
basisFormat: number
format chosen from GetSupportedTranscodeFormat
Returns number
internal format corresponding to the Basis format
-
Static Load Texture From Transcode ResultSearch playground for LoadTextureFromTranscodeResult
-
Loads a texture from the transcode result
Parameters
-
texture: InternalTexture
texture load to
-
transcodeResult: TranscodeResult
the result of transcoding the basis file to load from
Returns void
-
Static Transcode AsyncSearch playground for TranscodeAsync
-
Transcodes a loaded image file to compressed pixel data
Parameters
-
data: ArrayBuffer | ArrayBufferView
image data to transcode
-
config: BasisTranscodeConfiguration
configuration options for the transcoding
Returns Promise<TranscodeResult>
a promise resulting in the transcoded image
-
Used to load .Basis files See https://github.com/BinomialLLC/basis_universal/tree/master/webgl