Class DefaultKTX2DecoderOptions
Hierarchy
- DefaultKTX2DecoderOptions
Index
Constructors
constructor
Returns DefaultKTX2DecoderOptions
Accessors
bypass Transcoders
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 undefined | string[]
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
Parameters
value: undefined | string[]
Returns void
force R8
force to always use (uncompressed) R8 for transcoded format
Returns undefined | boolean
force to always use (uncompressed) R8 for transcoded format
Parameters
value: undefined | boolean
Returns void
forceRG8
force to always use (uncompressed) RG8 for transcoded format
Returns undefined | boolean
force to always use (uncompressed) RG8 for transcoded format
Parameters
value: undefined | boolean
Returns void
forceRGBA
force to always use (uncompressed) RGBA for transcoded format
Returns undefined | boolean
force to always use (uncompressed) RGBA for transcoded format
Parameters
value: undefined | boolean
Returns void
is Dirty
Gets the dirty flag
Returns boolean
useRGBAIfASTCBC7 Not Available WhenUASTC
force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and ASTC + BC7 are not available as a compressed transcoded format
Returns undefined | boolean
force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and ASTC + BC7 are not available as a compressed transcoded format
Parameters
value: undefined | boolean
Returns void
useRGBAIf OnlyBC1BC3 Available WhenUASTC
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
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
Parameters
value: boolean
Returns void
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.