Update README.md

This commit is contained in:
Rich Geldreich
2026-01-22 18:33:53 -05:00
committed by GitHub
parent 41d568f934
commit 4d18db66d3

View File

@@ -145,6 +145,14 @@ chmod +x runwt.sh
The [wasmer](https://wasmer.io/) runtime should work too, but we haven't tested it yet.
Quick testing - ETC1S/UASTC LDR 4x4 (all platforms):
```
cd bin
wasmtime run --dir=. --dir=../test_files --wasm threads=yes --wasi threads=yes ./basisu_mt.wasm -test
wasmtime run --dir=. --dir=../test_files ./basisu_st.wasm -test
```
----
Building (Native)
@@ -200,26 +208,6 @@ The WASM WASI executables will be placed in the `bin/basisu` directory. These pl
----
### Running the WASM WASI Builds
Precompiled single and multithreaded WASM WASI executables have been checked into the `bin` directory. A WASM WASI runtime, like [wasmtime](https://github.com/bytecodealliance/wasmtime), is required to run them. The WASM executables have been so far tested under Windows, Ubuntu Linux, and macOS. Examples:
Multithreaded (greatly recommended):
```
cd bin
wasmtime run --dir=. --dir=../test_files --wasm threads=yes --wasi threads=yes ./basisu_mt.wasm -test
```
Single threaded example:
```
cd bin
wasmtime run --dir=. --dir=../test_files ./basisu_st.wasm -test
```
Also see the `runw.sh` and `runwt.sh` helper scripts.
----
### Testing the Codec
The command line tool includes some automated LDR/HDR encoding/transcoding tests: