Update README.md

This commit is contained in:
Rich Geldreich
2026-03-17 17:14:38 -04:00
committed by GitHub
parent 083f8d06f1
commit 5bfe4fa793

View File

@@ -16,7 +16,7 @@ To build the encoder and transcoder WASM libraries using [Emscripten](https://em
## KTX2 Compression, Transcoding, Display (ktx2_encode_test)
Live demo: [`ktx2_encode_test/index.html'](https://binomial.biz/ktx2_encode_test/)
Live demo: [`ktx2_encode_test/index.html`](https://binomial.biz/ktx2_encode_test/)
This demo shows how to use the compressor and transcoder from JavaScript. To use it, select a .PNG file then hit the "Encode!" button. The compressor will dynamically generate a .ktx2 file in memory which will then be immediately transcoded and rendered as a quad with a WebGL pixel shader used to sample the texture using the GPU. Hit the "Download!" button to locally download the generated .ktx2 file. This sample allows the user to toggle on/off all GPU formats the local device supports and see the results in real-time.