Merge pull request #2892 from greg-lunarg/mb
[platform/upstream/glslang.git] / Test / spv.shaderGroupVote.comp
1 #version 450\r
2 \r
3 #extension GL_ARB_shader_group_vote : enable\r
4 \r
5 layout(local_size_x = 4, local_size_y = 4) in;\r
6 \r
7 layout(std430, binding = 0) buffer Buffers\r
8 {\r
9     bool b;\r
10 };\r
11 \r
12 void main()\r
13 {\r
14     bool b1 = b;\r
15 \r
16     b1 = anyInvocationARB(b1);\r
17     b1 = allInvocationsARB(b1);\r
18     b1 = allInvocationsEqualARB(b1);\r
19 \r
20     b = b1;\r
21 }\r