perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / glsl-const-initializer-03.shader_test
bloba3bbd39c14c3053478fe3a1a61a013796596b43d
1 [require]
2 GLSL >= 1.10
4 [fragment shader]
5 uniform float a;
6 uniform float b;
7 void main(void)
9         struct S {
10                 float a;
11                 float b;
12                 float c;
13                 float d;
14         } s = S(0.5, 0.5, 0.5, 0.5);
16         s.a = s.a + a;
17         s.a = s.a - b;
18         gl_FragColor = vec4(s.a, s.b, s.c, s.d);
21 [test]
22 uniform float a 0.3
23 uniform float b 0.3
24 draw rect -1 -1 2 2
25 probe all rgba 0.5 0.5 0.5 0.5