|
@@ -53,8 +53,8 @@ export interface ICompressedFormatCapabilities {
|
|
}
|
|
}
|
|
|
|
|
|
export interface IKTX2DecoderOptions {
|
|
export interface IKTX2DecoderOptions {
|
|
- /** use RGBA format if UASTC and BC7 are not available as transcoded format */
|
|
|
|
- useRGBAIfUASTCBC7NotAvailable?: boolean;
|
|
|
|
|
|
+ /** use RGBA format if ASTC and BC7 are not available as transcoded format */
|
|
|
|
+ useRGBAIfASTCBC7NotAvailable?: boolean;
|
|
|
|
|
|
/** force to always use RGBA for transcoded format */
|
|
/** force to always use RGBA for transcoded format */
|
|
forceRGBA?: boolean;
|
|
forceRGBA?: boolean;
|
|
@@ -131,7 +131,7 @@ export class KTX2Decoder {
|
|
} else if (caps.bptc) {
|
|
} else if (caps.bptc) {
|
|
targetFormat = transcodeTarget.BC7_RGBA;
|
|
targetFormat = transcodeTarget.BC7_RGBA;
|
|
transcodedFormat = COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
transcodedFormat = COMPRESSED_RGBA_BPTC_UNORM_EXT;
|
|
- } else if (options?.useRGBAIfUASTCBC7NotAvailable) {
|
|
|
|
|
|
+ } else if (options?.useRGBAIfASTCBC7NotAvailable) {
|
|
targetFormat = transcodeTarget.RGBA32;
|
|
targetFormat = transcodeTarget.RGBA32;
|
|
transcodedFormat = RGBA8Format;
|
|
transcodedFormat = RGBA8Format;
|
|
roundToMultiple4 = false;
|
|
roundToMultiple4 = false;
|