r/computergraphics • u/Electrical-Dog-8716 • 13h ago
"slang-effects": Techniques, passes and render state declared in Slang, a D3DX-effects-style layer for Vulkan, Metal and WebGPU

https://github.com/bagobor/slang-effects
tldr:
import sfx;
[shader("fragment")] [Pass("lit")] [Blend(BlendPreset.Alpha)] [Depth(DepthTest.LessEqual, false)]
float4 litPS(VOut v) : SV_Target { ... }(AI Assisted) I was porting some of my old project from DX to Vulkan and ended up with this middle ground solution.
Lightly battle tested in 4 my personal projects and one MMO RGB game backport (private, not for share).