Skip to content

Commit f6c958f

Browse files
enum fix for ktx/basis (#16900)
while investigating https://forum.babylonjs.com/t/ktx2-ios-mipmap-issue/59136 Found an issue here: https://github.com/BabylonJS/Babylon.js/blob/2a36f70486180195605b4b381a569d8b43fbf986/packages/tools/ktx2Decoder/src/Transcoders/mscTranscoder.ts#L146 To make it short, `KTX2.TranscodeTarget[dst]` returned `ASTC_4X4_RGBA` while expected value for basis is `ASTC_4x4_RGBA`. Keeping old enum value to not break back compat.
1 parent 78c9d38 commit f6c958f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/dev/core/src/Materials/Textures/ktx2decoderTypes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ export enum SourceTextureFormat {
66

77
export enum TranscodeTarget {
88
ASTC_4X4_RGBA,
9+
// eslint-disable-next-line @typescript-eslint/naming-convention
10+
ASTC_4x4_RGBA = ASTC_4X4_RGBA,
911
BC7_RGBA,
1012
BC3_RGBA,
1113
BC1_RGB,

0 commit comments

Comments
 (0)