Writing shaders for graphics in plain Rust
by Sebastian Sydow
Rust-GPU is a rustc codegen backend that compiles embedded rust code to GPU shaders. You can then use these shaders in bevy, your custom wgpu engine or with plain Vulkan. But how does it compare to rust-like DSLs, such as wgsl or burn? Why are we targetting SPIR-V, yet can compile to wgsl? And if we really can compile ordinary rust, what could we run on graphics cards?
Sebastian Sydow
he/himRust-GPU Maintainer at Vectorware
Computer graphics engineer turned compiler dev, now working on Rust-GPU