Goofy icon indicating copy to clipboard operation
Goofy copied to clipboard

WASM support

Open RobinRenggli opened this issue 1 year ago • 1 comments

I would be interested in trying to use this encoder in a webGL context, i.e. in the web. Have you considered offering a web assembly version? Your first listed use-case is likely to more common in a web context, i.e. I think this would make a lot of sense.

To quickly encode an uncompressed texture on the fly. When you need to use uncompressed texture for rendering (synthesised or fetched from the Internet), it may be a good option to compress it first using Goofy to save some device memory and performance.

Are there any plans for this, or are you aware of any potential pitfalls/reasons why it wouldn't work?

RobinRenggli avatar Jan 09 '25 10:01 RobinRenggli

It is already WASM-ready, and the CI checks the WebAssembly build on every change. (More details here: https://github.com/SergeyMakeev/Goofy/pull/3 )

The last WASM build results are automatically published here https://sergeymakeev.com/Goofy/

SergeyMakeev avatar Jan 24 '25 22:01 SergeyMakeev