logoalt Hacker News

salsa_catsuptoday at 2:46 AM2 repliesview on HN

Does this mean I can write shaders in Rust for use with WGPU or Vulkan?


Replies

ivanjermakovtoday at 7:31 AM

WGPU/Vulkan don't work with PTX shaders by default, additional translation would be needed.

On a side note, Vulkan has extension to launch CUDA kernels: https://docs.vulkan.org/refpages/latest/refpages/source/VK_N...

berkestoday at 8:16 AM

The way I understood it, rust would become an option next to Vulkan, WGPU (and opengl etc?).

But only for compute tasks. So, practically an alternative language to write compute shaders in.