API

Class DefaultKTX2DecoderOptions

Class that defines the default KTX2 decoder options.

This class is useful for providing options to the KTX2 decoder to control how the source data is transcoded.

Index
  • get bypassTranscoders(): string[] | undefined

    list of transcoders to bypass when looking for a suitable transcoder. The available transcoders are: UniversalTranscoder_UASTC_ASTC UniversalTranscoder_UASTC_BC7 UniversalTranscoder_UASTC_RGBA_UNORM UniversalTranscoder_UASTC_RGBA_SRGB UniversalTranscoder_UASTC_R8_UNORM UniversalTranscoder_UASTC_RG8_UNORM MSCTranscoder

    Returns string[] | undefined

  • set bypassTranscoders(value: string[] | undefined): void

    Parameters

    • value: string[] | undefined

    Returns void

  • get useRGBAIfOnlyBC1BC3AvailableWhenUASTC(): boolean | undefined

    force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and only BC1 or BC3 are available as a compressed transcoded format. This property is true by default to favor speed over memory, because currently transcoding from UASTC to BC1/3 is slow because the transcoder transcodes to uncompressed and then recompresses the texture

    Returns boolean | undefined

  • set useRGBAIfOnlyBC1BC3AvailableWhenUASTC(value: boolean | undefined): void

    Parameters

    • value: boolean | undefined

    Returns void