Popov72 hace 4 años
padre
commit
93da439ef5
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      ktx2Decoder/src/ktx2Decoder.ts

+ 3 - 3
ktx2Decoder/src/ktx2Decoder.ts

@@ -53,8 +53,8 @@ export interface ICompressedFormatCapabilities {
 }
 
 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 */
     forceRGBA?: boolean;
@@ -131,7 +131,7 @@ export class KTX2Decoder {
         } else if (caps.bptc) {
             targetFormat = transcodeTarget.BC7_RGBA;
             transcodedFormat = COMPRESSED_RGBA_BPTC_UNORM_EXT;
-        } else if (options?.useRGBAIfUASTCBC7NotAvailable) {
+        } else if (options?.useRGBAIfASTCBC7NotAvailable) {
             targetFormat = transcodeTarget.RGBA32;
             transcodedFormat = RGBA8Format;
             roundToMultiple4 = false;