Rust running on every GPU
I've built a demo of a single
shared Rust codebase that runs on every major GPU platform:
CUDA for NVIDIA GPUs
SPIR-V for Vulkan-compatible GPUs from AMD, Intel, NVIDIA, and Android devices
Metal for Apple devices
DirectX 12 for Windows
WebGPU for browsers
CPU fallback for non-GPU systems
The same compute logic runs on all targets, written entirely in regular Rust. No shader
or kernel languages are used.
The code is available on GitHub.
Background​
GPUs are typically programmed using specialized...
Read more at rust-gpu.github.io