Basis Universal .KTX2 GPU Texture Encoding and Transcoding Test

This demo uses the Basis Universal C++ transcoder (compiled to WebAssembly using Emscripten) to transcode a .ktx2 file to FORMAT
It also supports encoding .PNG, .EXR or .HDR files to LDR or HDR .KTX2 files.
Thanks to Evan Parker for providing webgl-texture-utils and this test bed.

.ktx2 file:

.png/.exr/.hdr file:

Use UASTC HDR:
Use UASTC LDR:
Convert LDR images to linear light (UASTC HDR mode):
Debug output:
Compute Stats:
Use sRGB/perceptual metrics:
Generate Mipmaps:
ETC1S Quality:


1