BinomialLLC / basis_universal

Basis Universal GPU Texture Codec
Apache License 2.0
2.7k stars 263 forks source link

Does this project with WebGPU (web)? #362

Closed shi-yan closed 1 year ago

shi-yan commented 1 year ago

I saw the webgl/wasm demo, but could you confirm if this works with webgpu? i.e. if the transcoding step happens on GPU and relies on webgl?

The reason for asking is because of the paper referenced in README:

However, decoding the texture on the CPU eschews the main benefits of compressing textures: the gained bandwidth across the CPU-GPU bus.
...
In this paper, we present a new supercompression algorithm GST, pronounced jist, for decompressing textures on the GPU into
hardware-compressed formats.

The above seems to suggest a GPU based transcoding. Since this library predates the WebGPU era, I wonder if it works with it.

richgel999 commented 1 year ago

The transcoder is entirely CPU. There is no GPU transcoder yet.