perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.50 / execution / interface-blocks-simple-varying.shader_test
blobaa14c94b0c3ae8b22f5ece605849c42d518f9430
1 [require]
2 GLSL >= 1.50
4 [vertex shader]
5 #version 150
7 in vec4 piglit_vertex;
9 uniform vec4 color;
11 out block {
12     vec4 a;
13 } inst_a;
15 out vec4 c;
17 void main()
19     gl_Position = piglit_vertex;
20     inst_a.a = color;
23 [fragment shader]
24 #version 150
26 in block {
27     vec4 a;
28 } inst_b;
30 void main()
32     gl_FragColor = inst_b.a;
35 [test]
36 uniform vec4 color 0.0 0.0 0.0 1.0
37 draw rect -1 -1 2 2
38 probe all rgba 0.0 0.0 0.0 1.0
40 uniform vec4 color 0.0 1.0 0.0 1.0
41 draw rect -1 -1 2 2
42 probe all rgba 0.0 1.0 0.0 1.0