#Writing compute shaders in rust
6 messages · Page 1 of 1 (latest)
do you want to literally write the shader code in Rust? then you need rust-gpu in particular
CUDA is, afaik, a different paradigm that also runs code on the GPU but isn't compute shaders and doesn't integrate into a graphics pipeline at all, unlike compute shaders
wgpu will let you write compute shaders in WGSL (which has Rust-flavored syntax) or other shading languages and translate them as needed, then use them from Rust CPU-side code