News for hackers. Stuff that matters.
Re:The Slang Shading Language by jacobgorm on Sunday December 01, 2024 @06:04AM (#42287712)
Will Slang support compute shaders too, or is it just for graphics.
Re:The Slang Shading Language by Cotterzz on Sunday December 01, 2024 @06:57AM (#42287964)
It's compute also, though that may depend on the target language.
Re:The Slang Shading Language by bartwr on Sunday December 01, 2024 @10:25AM (#42288861)
It does! Both platform-specific compute shaders as well as cross-compilation to CUDA. The authors even provide some basic PyTorch bindings to help use existing shader code for gradient computation and backpropagation in ML and differentiable programming of graphics-adjacent tasks: https://github.com/shader-slang/slang-torch (Disclaimer: this is the work of my colleagues, and I helped test-drive differentiable Slang and wrote one of the example applications/use-cases)