Writing Compute Shaders In/With Zig (opens in new tab)
Velcrone: To my understanding, I would need to: Add the slang compiler into the build system (this is definitely the easiest to figure out) Establish the bindings with Slang’s reflection Dispatch the shaders from Zig code in whichever platform-dependant format (ie Slang on macos would compile down to Metal vs Vulkan or Cuda on everything else) Yes, that is correct. Adding the slang compiler in the build process adds a system dependency, which is always a bummer, but it is what it is. For the ...
Read the original article