Merge pull request #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git] / Test / hlsl.tristream-append.geom
1 struct GSPS_INPUT
2 {
3 };
4
5 // Test Append() method appearing before declaration of entry point's stream output.
6
7 void EmitVertex(in GSPS_INPUT output, inout TriangleStream<GSPS_INPUT> TriStream)
8 {
9     TriStream.Append( output );
10 }
11
12 [maxvertexcount(3)]
13 void main( triangle GSPS_INPUT input[3], inout TriangleStream<GSPS_INPUT> TriStream )
14 {
15     EmitVertex(input[0], TriStream);
16     EmitVertex(input[1], TriStream);
17     EmitVertex(input[2], TriStream);
18 }