Interface IKTX2EncoderOptionsExperimental
interface IKTX2EncoderOptions {
etc1sCompressionLevel?: number;
etc1sQualityLevel?: number;
flipY?: boolean;
generateMipmaps?: boolean;
uastcQualityLevel?: number;
usage: KTX2EncoderUsage;
zstandard?: boolean;
}
etc1sCompressionLevel?: number;
etc1sQualityLevel?: number;
flipY?: boolean;
generateMipmaps?: boolean;
uastcQualityLevel?: number;
usage: KTX2EncoderUsage;
zstandard?: boolean;
}
Properties
Optional Experimentaletc1s Compression Level
etc1sCompressionLevel?: number
Integer ETC1S compression effort for color usage only, from 0 to 6. Defaults to 2.
Optional Experimentaletc1s Quality Level
etc1sQualityLevel?: number
Integer ETC1S quality for color usage only, from 1 to 255. Defaults to 128.
Optional Experimentalflip Y
flipY?: boolean
Reverse the input row order in Basis. Defaults to false.
Optional Experimentalgenerate Mipmaps
generateMipmaps?: boolean
Generate a full mip pyramid. Defaults to true.
Optional Experimentaluastc Quality Level
uastcQualityLevel?: number
Integer UASTC quality for data and normal usage only, from 0 to 4. Defaults to 2.
Experimentalusage
Color uses ETC1S and sRGB; data and normal use linear UASTC.
Optional Experimentalzstandard
zstandard?: boolean
Use Zstandard with UASTC. Defaults to true for data and normal. Ignored for color.
Options for encoding RGBA8 pixels into a KHR_texture_basisu-compatible KTX2 file.