yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
12137e9b0
master
1//TEST:SIMPLE(filecheck=HLSL): -target hlsl -entry main 2//TEST:SIMPLE(filecheck=GLSL): -target glsl -entry main 3 4// This test checks if `nointerpolation` is emitted more than once 5//HLSL-NOT:nointerpolation nointerpolation 6//GLSL-NOT:flat flat 7 8[shader("pixel")] 9void main(out float4 SV_Target : SV_Target, const in nointerpolation float4 color : color) 10{ 11 for (int i = 0; i < 10; ++i) 12 {} 13 14 SV_Target = color; 15}