Interface IKTX2DecoderOptions
bypassTranscoders?: string[];
forceR8?: boolean;
forceRG8?: boolean;
forceRGBA?: boolean;
transcodeFormatDecisionTree?: IDecisionTree;
useRGBAIfASTCBC7NotAvailableWhenUASTC?: boolean;
}
Properties
Optionalbypass 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
Optionalforce R8
force to always use (uncompressed) R8 for transcoded format
Optionalforce RG8
force to always use (uncompressed) RG8 for transcoded format
Optionalforce RGBA
force to always use (uncompressed) RGBA for transcoded format
Optionaltranscode Format Decision Tree
Custom decision tree to apply after the default decision tree has selected a transcoding format. Allows the user to override the default decision tree selection. The decision tree can use the INode.transcodeFormat property to base its decision on the transcoding format selected by the default decision tree.
Optionaluse RGBA If ASTCBC7 Not Available When UASTC
use RGBA format if ASTC and BC7 are not available as transcoded format
Options passed to the KTX2 decode function