LoopDawg | 1326b8c | 2018-05-15 13:36:13 -0600 | [diff] [blame] | 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 | } |