Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / hlsl.basic.geom
1 struct PSInput
2 {
3     float  myfloat    : SOME_SEMANTIC;
4     int    something  : ANOTHER_SEMANTIC;
5 };
6
7 struct nametest {
8     int Append;        // these are valid names even though they are also method names.
9     int RestartStrip;  // ...
10 };
11
12 [maxvertexcount(4)]
13 void main(triangle in uint VertexID[3] : VertexID,
14           triangle uint test[3] : FOO, 
15           inout LineStream<PSInput> OutputStream)
16 {
17     PSInput Vert;
18
19     Vert.myfloat    = test[0] + test[1] + test[2];
20     Vert.something  = VertexID[0];
21
22     OutputStream.Append(Vert);
23     OutputStream.Append(Vert);
24     OutputStream.RestartStrip();
25 }