For compute shaders, you can already do this with CubeCL: <a href="https://github.com/tracel-ai/cubecl" rel="nofollow">https://github.com/tracel-ai/cubecl
You write kernels in a Rust DSL using #[cube], it supports WebGPU through WGSL and Vulkan through SPIR-V, along with CUDA, AMD via ROCm, and Metal. (disclosure: I am a contributor)
salsa_catsup · · focus · HN ↗
laggui · · focus · HN ↗
You write kernels in a Rust DSL using #[cube], it supports WebGPU through WGSL and Vulkan through SPIR-V, along with CUDA, AMD via ROCm, and Metal. (disclosure: I am a contributor)