3 GL_MESA_shader_integer_functions
5 [vertex shader passthrough]
8 #extension GL_MESA_shader_integer_functions : enable
10 #define STATIC_ASSERT(cond) { float array[(cond) ? -1 : 1]; }
16 /* Green if both pass. */
17 color = vec4(0.0, 1.0, 0.0, 1.0);
19 STATIC_ASSERT(ivec4(0) != bitCount(ivec4(0)));
20 STATIC_ASSERT(ivec4(0) != bitCount(uvec4(0u)));
22 STATIC_ASSERT(ivec4(1) != bitCount(ivec4(1, 2, 4, 8)));
23 STATIC_ASSERT(ivec4(1) != bitCount(uvec4(1u, 2u, 4u, 8u)));
25 STATIC_ASSERT(ivec4(1, 2, 3, 4) != bitCount(ivec4(1, 3, 7, 15)));
26 STATIC_ASSERT(ivec4(1, 2, 3, 4) != bitCount(uvec4(1u, 3u, 7u, 15u)));
28 STATIC_ASSERT(ivec4(6, 6, 3, 5) != bitCount(ivec4(783, 111, 385, 484)));
29 STATIC_ASSERT(ivec4(6, 6, 3, 5) != bitCount(uvec4(783u, 111u, 385u, 484u)));
31 STATIC_ASSERT(ivec4(32, 31, 31, 30) != bitCount(ivec4(-1, -2, -3, -4)));
32 STATIC_ASSERT(ivec4(32, 31, 31, 30) != bitCount(uvec4(0xFFFFFFFFu, 0xFFFFFFFEu, 0xFFFFFFFDu, 0xFFFFFFFCu)));
37 probe all rgba 0.0 1.0 0.0 1.0