Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / link.tesselation.tesc
1 #version 440\r
2 \r
3 layout(location = 0) in Primitive\r
4 {\r
5     vec2 texCoord;\r
6 } IN[];\r
7 \r
8 layout(location = 0) out Primitive\r
9 {\r
10     vec2 texCoord;\r
11 } OUT[];\r
12 \r
13 layout(vertices = 3) out;\r
14 void main()\r
15 {\r
16     OUT[gl_InvocationID].texCoord = IN[gl_InvocationID].texCoord;\r
17 \r
18     float tessLevel = 10.0;\r
19     gl_TessLevelOuter[gl_InvocationID] = tessLevel;\r
20     gl_TessLevelInner[0] = tessLevel;\r
21 }\r