framework/replay: disable AA accounting when comparing with no tolerance
[piglit.git] / tests / spec / glsl-1.50 / compiler / output-struct.geom
blob1d751a0859e995cbd22ec120e4b48f1a20a73093
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.50
4 // check_link: false
5 // [end config]
6 //
7 //Tests compiler/parser: output of geometry shader may be a struct
9 /*
10 * GLSLLangSpec.1.50.09 4.3.6 Outputs:
11 * Vertex and geometry output variables output per-vertex data and are declared
12 * using the out storage qualifier, the centroid out storage qualifier, or the
13 * deprecated varying storage qualifier. They can only be float, floating-point
14 * vectors, matrices, signed or unsigned integers or integer vectors, or arrays
15 * or structures of any these.
18 #version 150
20 layout(triangles) in;
21 layout(triangle_strip) out;
23 in int a[];
24 in float b[];
25 in vec3 c[];
26 in mat4 d[];
28 out struct foo
30         int a;
31         float b;
32         vec3 c;
33         mat4 d;
34 } s;
36 void main()
38         for (int i = 0; i < 3; i++) {
39                 s.a = a[i];
40                 s.b = b[i];
41                 s.c = c[i];
42                 s.d = d[i];
44                 gl_Position = vec4(
45                                 s.a +
46                                 s.b +
47                                 s.c.x +
48                                 s.d[0].x
49                                 );
50                 EmitVertex();
51         }