BasisTools

Hierarchy

  • BasisTools

Index

Properties

Static JSModuleURL

Find examples in Playground
JSModuleURL: string

URL to use when loading the basis transcoder

Static WasmModuleURL

Find examples in Playground
WasmModuleURL: string

URL to use when loading the wasm module for the transcoder

Methods

Static GetInternalFormatFromBasisFormat

Find examples in Playground
  • GetInternalFormatFromBasisFormat(basisFormat: number): number
  • 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 LoadTextureFromTranscodeResult

Find examples in Playground
  • Loads a texture from the transcode result

    Parameters

    Returns void

Static TranscodeAsync

Find examples in Playground
  • Transcodes a loaded image file to compressed pixel data

    Parameters

    Returns Promise<TranscodeResult>

    a promise resulting in the transcoded image

Generated using TypeDoc