wgpu-compute-toy
This is the compute shader engine for https://compute.toys
As well as running on the web via WebAssembly and WebGPU, it can run natively using standard desktop graphics APIs like Vulkan and DirectX.
Native
cargo run examples/davidar/buddhabrot.wgsl
Web
Install wasm-pack and run wasm-pack build
.
The following command can be used to quickly recompile while the compute.toys server is running:
wasm-pack build --dev && cp -rv pkg/. ../compute.toys/lib/wgputoy/