ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / arb_shader_atomic_counters / compiler / expression-disallowed-2.frag
blobcf4718df27fd0765127d5541fad5dc7d66b3b212
1 /* [config]
2  * expect_result: fail
3  * glsl_version: 1.40
4  * require_extensions: GL_ARB_shader_atomic_counters
5  * [end config]
6  *
7  * "Except for array indexing, structure field selection, and
8  *  parenthesis, counters are not allowed to be operands in
9  *  expressions."
10  */
11 #version 140
12 #extension GL_ARB_shader_atomic_counters: require
14 layout(binding=0) uniform atomic_uint x;
16 out vec4 fcolor;
18 void main()
20         fcolor.x = float(x);