Add more structure constructor tests.
[piglit/hramrach.git] / tests / shaders / generic / vp-arl-env-array.vpfp
blob9a6ece37b68302096ddd16b00d4bf5437109d9ae
1 ; Tests loading of a variable entry from an array of program locals.
3 !!ARBvp1.0
4 OPTION ARB_position_invariant;
5 PARAM vals[4] = { program.env[1..4] };
6 ADDRESS A0;
7 ARL A0.x, program.local[0].x;
8 MOV result.color, vals[A0.x+0];
9 END
11 !!ARBfp1.0
12 MOV result.color, fragment.color;
13 END
15 !!test
16 vertex.local[0]   3.0     0.0      0.0      0.0
17 vertex.environment[1]   0.5     1.0      2.0      0.0
18 vertex.environment[2]   1.0     0.0      1.0      0.0
19 vertex.environment[3]   1.0     0.0      0.5      0.0
20 vertex.environment[4]   0.8     1.0      0.0      0.0
21 expected          0.8     1.0      0.0      0.0