We are using KTX textures on multiple platforms. When using WebGL we can call engine.setTextureFormatToUse to determine the format [astc, dxt, pvrtc, etc2]. Once we make the switch to using WebGPU on Chrome Canary, none of these textures are available:
This PR will add support for ASTC and ETC2 if supported by your device and reported by the browser:
Note that dxt support is currently handled, engine.texturesSupported returns ['-dxt.ktx'] for me in the Playground when in WebGPU mode.
Note that if you don’t use the Playground you must create the engine by asking support for the extensions you want to use. For eg, the Playground is creating the engine like this: