Warning: highly experimental! I've tested it only on 64-bit Windows so far. On other platforms you have to install glslangValidator. It probably should work on Linux (X11/Wayland) and macOS (Metal), however has not been tested yet.
I'm currently writing a minimal object-oriented framework for the demo, so the code can be messy.
What is WebGPU?
It is a new low-level graphics and compute API for the Web that works on top of Vulkan, DirectX 12, or Metal. It exposes the generic computational facilities available in today's GPUs in a cross-platform way.
wgpu is a native WebGPU implementation in Rust that compiles to a library with C API, which can be used in any language.