ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_shader_atomic_counters / compiler / expression-disallowed-4.frag
blob76fc6c9bafdb8e6e4945d2b844ea30e729b75954
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 ivec4 fcolor;
18 void main()
20         fcolor.x = !x;