Add more structure constructor tests.
[piglit/hramrach.git] / tests / shaders / generic / vp-constant-array.vpfp
blob39c397f915d3e7f0e3c4c7d55c5e2919f9bce127
1 ; Tests loading of an entry in a constant array.
3 !!ARBvp1.0
4 OPTION ARB_position_invariant;
5 PARAM vals[4] = { {0.5, 1.0, 2.0, 0.0},
6                   {1.0, 0.0, 0.8, 0.0},
7                   {1.0, 0.0, 0.5, 0.0},
8                   {0.8, 1.0, 0.0, 0.0}
9                 };
10 MOV result.color, vals[3];
11 END
13 !!ARBfp1.0
14 MOV result.color, fragment.color;
15 END
17 !!test
18 expected          0.8     1.0      0.0      0.0