‹ BackHN Continuity

Thread

Nvidia announces native GPU programming in Rust

970 points · 404 comments · nonmaskable

  1. salsa_catsup · · focus · HN ↗
    Does this mean I can write shaders in Rust for use with WGPU or Vulkan?
    1. laggui · · focus · HN ↗
      For compute shaders, you can already do this with CubeCL: <a href="https:&#x2F;&#x2F;github.com&#x2F;tracel-ai&#x2F;cubecl" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tracel-ai&#x2F;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)

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.