From bde50649db06af91ac5c21bf371c9f29919510cc Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Sun, 1 Mar 2026 22:01:43 -0500 Subject: [PATCH 1/4] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fd8f3cb..e2dba4d 100644 --- a/README.md +++ b/README.md @@ -171,12 +171,20 @@ Running the Precompiled WASM WASI Executables For smaller images/textures (~4 megatexels or less), there are precompiled, secure, cross-platform 32-bit .WASM WASI executables checked into the `bin` directory: `basisu_mt.wasm` (multithreaded) and `basisu_st.wasm` (single threaded). Quick testing - ETC1S/UASTC LDR 4x4 (all platforms) - multithreaded and single threaded, using [wasmtime](https://wasmtime.dev/): +Tested with wasmtime v39.0.0: + ``` 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 ``` +For newer versions of wasmtime such as v42.0.1 add `--wasm shared-memory=yes`: + +``` +wasmtime run --dir=. --dir=../test_files --wasm threads=yes --wasm shared-memory=yes --wasi threads=yes ./basisu_mt.wasm -test +``` + See the `runwt.sh`, `runwt.bat`, `runw.sh`, or `runw.bat` scripts for examples on how to run the WASM executables using wasmtime. Windows example for XUASTC LDR 6x6 compression using the arithmetic profile, with Weight Grid DCT level 70: ``` From a6f5a7dd46e75839db2b380905cc7b3d3a45f90b Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Sun, 1 Mar 2026 22:29:25 -0500 Subject: [PATCH 2/4] Add Paint.NET as a .DDS file loader option --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e2dba4d..7029bbd 100644 --- a/README.md +++ b/README.md @@ -527,6 +527,7 @@ External Tool Links - [PVRTexTool](https://www.imgtec.com/developers/powervr-sdk-tools/pvrtextool/) - Can view .ASTC and .KTX files in some formats. (Note: .DDS viewer seems busted for BC1, doesn't support BC7 at all.) - [Microsoft's DirectXTex](https://github.com/microsoft/DirectXTex) - Samples contain a basic .DDS viewer. (Note: May still have issues loading .DDS files with texture dimensions that aren't divisible by 4 texels.) - [RenderDoc](https://renderdoc.org/) - Reliable viewer for LDR/HDR .DDS files in BC1-7 formats. +- [Paint.NET](https://www.getpaint.net/) - Windows app: .DDS file loader, supports BC1-7 and cubemaps - [Mali Texture Compression Tool](https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/52390/announcement-mali-texture-compression-tool-end-of-life) - Now deprecated. For more useful links, papers, and tools/libraries, see the end of the [UASTC HDR 4x4 texture specification](https://github.com/BinomialLLC/basis_universal/wiki/UASTC-HDR-4x4-Texture-Specification#papersfurther-reading). From 8b91f557ddfa31dd8eb610dd6f217651e0f10d80 Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Sun, 1 Mar 2026 22:32:55 -0500 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7029bbd..d46d19b 100644 --- a/README.md +++ b/README.md @@ -527,7 +527,7 @@ External Tool Links - [PVRTexTool](https://www.imgtec.com/developers/powervr-sdk-tools/pvrtextool/) - Can view .ASTC and .KTX files in some formats. (Note: .DDS viewer seems busted for BC1, doesn't support BC7 at all.) - [Microsoft's DirectXTex](https://github.com/microsoft/DirectXTex) - Samples contain a basic .DDS viewer. (Note: May still have issues loading .DDS files with texture dimensions that aren't divisible by 4 texels.) - [RenderDoc](https://renderdoc.org/) - Reliable viewer for LDR/HDR .DDS files in BC1-7 formats. -- [Paint.NET](https://www.getpaint.net/) - Windows app: .DDS file loader, supports BC1-7 and cubemaps +- [Paint.NET](https://www.getpaint.net/) - Windows app: built-in [.DDS file loading](https://github.com/0xC0000054/pdn-ddsfiletype-plus), supports BC1-7 and cubemaps - [Mali Texture Compression Tool](https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/52390/announcement-mali-texture-compression-tool-end-of-life) - Now deprecated. For more useful links, papers, and tools/libraries, see the end of the [UASTC HDR 4x4 texture specification](https://github.com/BinomialLLC/basis_universal/wiki/UASTC-HDR-4x4-Texture-Specification#papersfurther-reading). From 291fe0b771e9d581da05e87e24404c5ce43b978d Mon Sep 17 00:00:00 2001 From: Rich Geldreich Date: Sun, 1 Mar 2026 22:33:37 -0500 Subject: [PATCH 4/4] Fix Paint.NET link to include cubemaps support --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d46d19b..9b797be 100644 --- a/README.md +++ b/README.md @@ -527,7 +527,7 @@ External Tool Links - [PVRTexTool](https://www.imgtec.com/developers/powervr-sdk-tools/pvrtextool/) - Can view .ASTC and .KTX files in some formats. (Note: .DDS viewer seems busted for BC1, doesn't support BC7 at all.) - [Microsoft's DirectXTex](https://github.com/microsoft/DirectXTex) - Samples contain a basic .DDS viewer. (Note: May still have issues loading .DDS files with texture dimensions that aren't divisible by 4 texels.) - [RenderDoc](https://renderdoc.org/) - Reliable viewer for LDR/HDR .DDS files in BC1-7 formats. -- [Paint.NET](https://www.getpaint.net/) - Windows app: built-in [.DDS file loading](https://github.com/0xC0000054/pdn-ddsfiletype-plus), supports BC1-7 and cubemaps +- [Paint.NET](https://www.getpaint.net/) - Windows app: built-in [.DDS file loading](https://github.com/0xC0000054/pdn-ddsfiletype-plus), supports BC1-7 and [cubemaps](https://github.com/0xC0000054/pdn-ddsfiletype-plus/wiki/Cube-Maps) - [Mali Texture Compression Tool](https://community.arm.com/support-forums/f/graphics-gaming-and-vr-forum/52390/announcement-mali-texture-compression-tool-end-of-life) - Now deprecated. For more useful links, papers, and tools/libraries, see the end of the [UASTC HDR 4x4 texture specification](https://github.com/BinomialLLC/basis_universal/wiki/UASTC-HDR-4x4-Texture-Specification#papersfurther-reading).