https://github.com/shader-slang/slang
Raw File
Tip revision: 6992d0e3eb7eab04f05da99adcf437cfdbfbbb79 authored by Tim Foley on 21 July 2017, 19:31:18 UTC
Merge pull request #134 from tfoleyNV/gh-133
Tip revision: 6992d0e
gh-34.hlsl
//TEST:COMPARE_HLSL: -profile gs_5_0 -target dxbc-assembly -no-checking

struct VS_OUT { float3 p : POSITION; };

[maxvertexcount(3)]
void main(InputPatch<VS_OUT, 3> input, inout TriangleStream<VS_OUT> outStream)
{
    VS_OUT output;
    for (uint i = 0; i < 3; i += 1)
    {
        output = input[i];
        outStream.Append(output);
    }

    outStream.RestartStrip();
}
back to top