yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Tim FoleyRework command-line options handling for entry points and targets (#697)725985528

master
369 B18 linesraw
1//TEST:COMPARE_HLSL: -profile gs_5_0
2
3struct VS_OUT { float3 p : POSITION; };
4
5[maxvertexcount(3)]
6void main(InputPatch<VS_OUT, 3> input, inout TriangleStream<VS_OUT> outStream)
7{
8    VS_OUT output;
9    for (uint i = 0;; i += 1)
10    {
11        if(i < 3) {} else break;
12
13        output = input[i];
14        outStream.Append(output);
15    }
16
17    outStream.RestartStrip();
18}