Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BasisTools

Hierarchy

  • BasisTools

Index

Properties

Static JSModuleURLSearch playground for JSModuleURL

JSModuleURL: string

URL to use when loading the basis transcoder

Static WasmModuleURLSearch playground for WasmModuleURL

WasmModuleURL: string

URL to use when loading the wasm module for the transcoder

Methods

Static GetInternalFormatFromBasisFormatSearch playground for GetInternalFormatFromBasisFormat

  • 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 LoadTextureFromTranscodeResultSearch playground for LoadTextureFromTranscodeResult

  • Loads a texture from the transcode result

    Parameters

    Returns void

Static TranscodeAsyncSearch 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

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method