blob: 208607d372fbbbb8bb07912176287bd1cc841bb7 [file] [log] [blame]
LoopDawg1326b8c2018-05-15 13:36:13 -06001struct GSPS_INPUT
2{
3};
4
5// Test Append() method appearing before declaration of entry point's stream output.
6
7void EmitVertex(in GSPS_INPUT output, inout TriangleStream<GSPS_INPUT> TriStream)
8{
9 TriStream.Append( output );
10}
11
12[maxvertexcount(3)]
13void 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}