perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.10 / execution / struct.shader_test
blob07f732782ea8aa4d07ce3994fd6b7fb1f1858389
1 [require]
2 GLSL >= 1.10
4 [fragment shader]
5 struct s1 {
6   float f1;
7   vec4 v4;
8 };
10 void main()
12         vec4 scale = vec4(0.5);
13         vec4 bias = vec4(0.1);
14         s1 a;
15         a.v4 = vec4(0.25, 0.5, 0.75, 1.0);
16         a.f1 = 0.0;
17         gl_FragColor = a.v4 * scale + bias;
21 [test]
22 draw rect -1 -1 2 2
23 relative probe rgba (0.5, 0.5) (0.225, 0.35, 0.475, 0.6)