What's the status on supporting WebGPU and WGSL? #26
-
The README currently says:
Right now I'm working on Vello, a 2D graphics engine implemented on top of wgpu. We won't even consider an alternative which is Vulkan-only. Is WebGPU support in the pipeline? Any idea if or when it will happen? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
We support wgpu, both native (passed through to vulkan directly where possible) and on the web (using naga to translate). Some of the examples in the repo use it and we have run a few on multiple platforms including web and Android. I don't believe there are any plans for the compiler backend to output anything other than spir-v, especially with MS switching to spir-v for directx (https://devblogs.microsoft.com/directx/directx-adopting-spir-v/) and naga existing. That being said, we have an experimental IR which may allow us to directly do the translation naga does internally in the future if it makes sense (https://github.com/Rust-GPU/spirt). @eddyb can correct me if I am wrong as I am still new to the project. |
Beta Was this translation helpful? Give feedback.
-
My project renderling uses |
Beta Was this translation helpful? Give feedback.
We support wgpu, both native (passed through to vulkan directly where possible) and on the web (using naga to translate). Some of the examples in the repo use it and we have run a few on multiple platforms including web and Android.
I don't believe there are any plans for the compiler backend to output anything other than spir-v, especially with MS switching to spir-v for directx (https://devblogs.microsoft.com/directx/directx-adopting-spir-v/) and naga existing.
That being said, we have an experimental IR which may allow us to directly do the translation naga does internally in the future if it makes sense (https://github.com/Rust-GPU/spirt).
@eddyb can correct me if I am wrong as I am s…