perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / spec / glsl-1.50 / compiler / input-struct.frag
blob2420658e2b12aed0f9a245136b7fb8e95ad8cc32
1 // [config]
2 // expect_result: pass
3 // glsl_version: 1.50
4 // check_link: false
5 // [end config]
7 // Section 4.3.4 (Inputs) of GLSL 1.50 spec states:
8 //      "Fragment inputs can only be signed and
9 //      unsigned integers and integer vectors, float, floating-point 
10 //      vectors, matrices, or arrays or structures of
11 //      these."
12 #version 150
14 flat in struct A {
15         int x;
16         float y;
17         vec3 z;
18         uvec4 w;
19         mat3 v;
20 } a;
22 void main () {
23         gl_FragColor = vec4(a.x + a.y + a.z.x + a.w.x + a.v[0].x);