perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / vs-integer-reduction.shader_test
blobb30337b99c42d4a317cfa353b473eea3579990c7
1 [require]
2 GLSL >= 1.10
4 [vertex shader]
5 uniform ivec4 v;
6 varying vec4 color;
8 void main()
10         int i = v.x + v.y + v.z + v.w;
12         color = (i == 27) ? vec4(0, 1, 0, 1) : vec4(1, 0, 0, 1);
13         gl_Position = gl_Vertex;
16 [fragment shader]
17 varying vec4 color;
19 void main()
21         gl_FragColor = color;
24 [test]
25 uniform ivec4 v -2 -1 25 5
27 draw rect -1 -1 2 2
28 probe all rgba 0 1 0 1