Merge pull request #3031 from rg3igalia/sub-group-size-arb-flat-fix
[platform/upstream/glslang.git] / Test / spv.conditionalDemote.frag
1 #version 460 core\r
2 #extension GL_EXT_demote_to_helper_invocation : enable\r
3 \r
4 layout(set = 0, binding = 0) uniform sampler2D tex;\r
5 layout(location = 0) in vec2 coord;\r
6 layout(location = 0) out vec4 o;\r
7 \r
8 void main (void)\r
9 {\r
10     vec4 v = texture(tex, coord);\r
11 \r
12     if (v == vec4(0.1,0.2,0.3,0.4))\r
13         demote;\r
14 \r
15     bool x = helperInvocationEXT();\r
16 \r
17     o = v;\r
18 }\r