Update README.md

This commit is contained in:
Rich Geldreich
2020-12-17 14:52:36 -05:00
committed by GitHub
parent ea668ac2c3
commit 5d2120b085

View File

@@ -42,7 +42,7 @@ extension that is [currently in development](https://github.com/KhronosGroup/glT
## Compressor (encode_test)
This demo shows how to use the compressor from JavaScript. To use it, select a .PNG file, hit the "Encode!" button. The compressor will be invoked to dynamically generate a .basis file, which will be immediately transcoded. To download the generated .basis file, select the "Download!" button. To view the compressor's textual debug output, open your browser's developer debug console and enable the Debug checkbox before hitting the "Encode!" button.
This demo shows how to use the compressor from JavaScript. To use it, select a .PNG file then hit the "Encode!" button. The compressor will be invoked to dynamically generate a .basis file in memory which will then be immediately transcoded. To download the generated .basis file, select the "Download!" button. To view the compressor's textual debug output, open your browser's developer debug console (under Developer Tools in Chrome) and enable the Debug checkbox before hitting the "Encode!" button. Multithreading is not currently supported when the compressor is compiled to WebAssembly, so compressing larger textures will be slower than using the stand-alone command line tool.
![Screenshot showing the encode_test demo](encode_test/preview.png)