Merge pull request #2976 from jeremy-lunarg/hayes-fix-2975
[platform/upstream/glslang.git] / Test / spv.fsi_Error.frag
1 #version 450\r
2 #extension GL_ARB_fragment_shader_interlock : enable\r
3 \r
4 layout(pixel_interlock_ordered) out;\r
5 \r
6 layout(pixel_interlock_ordered) in;\r
7 layout(pixel_interlock_unordered) in;\r
8 \r
9 void foo()\r
10 {\r
11     beginInvocationInterlockARB();\r
12     endInvocationInterlockARB();\r
13 }\r
14 \r
15 void main() {\r
16 \r
17     endInvocationInterlockARB();\r
18     beginInvocationInterlockARB();\r
19 \r
20     return;\r
21 \r
22     endInvocationInterlockARB();\r
23 }\r