Class DefaultKTX2DecoderOptions
Index
Constructors
constructor
-
Returns DefaultKTX2DecoderOptions
Accessors
bypass Transcoders
-
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
force R8
-
get forceR8(): boolean | undefined
force to always use (uncompressed) R8 for transcoded format
Returns boolean | undefined
-
set forceR8(value: boolean | undefined): void
Parameters
- value: boolean | undefined
Returns void
force RG8
-
get forceRG8(): boolean | undefined
force to always use (uncompressed) RG8 for transcoded format
Returns boolean | undefined
-
set forceRG8(value: boolean | undefined): void
Parameters
- value: boolean | undefined
Returns void
force RGBA
-
get forceRGBA(): boolean | undefined
force to always use (uncompressed) RGBA for transcoded format
Returns boolean | undefined
-
set forceRGBA(value: boolean | undefined): void
Parameters
- value: boolean | undefined
Returns void
is Dirty
-
get isDirty(): boolean
Gets the dirty flag
Returns boolean
use RGBA If ASTCBC7 Not Available When UASTC
-
get useRGBAIfASTCBC7NotAvailableWhenUASTC(): boolean | undefined
force a (uncompressed) RGBA transcoded format if transcoding a UASTC source format and ASTC + BC7 are not available as a compressed transcoded format
Returns boolean | undefined
-
set useRGBAIfASTCBC7NotAvailableWhenUASTC(value: boolean | undefined): void
Parameters
- value: boolean | undefined
Returns void
use RGBA If Only BC1 BC3 Available When UASTC
-
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
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.