repo.or.cz
/
piglit
/
hramrach.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add more structure constructor tests.
[piglit/hramrach.git]
/
tests
/
shaders
/
generic
/
vp-constant-array.vpfp
blob
39c397f915d3e7f0e3c4c7d55c5e2919f9bce127
1
; Tests loading of an entry in a constant array.
2
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
12
13
!!ARBfp1.0
14
MOV result.color, fragment.color;
15
END
16
17
!!test
18
expected 0.8 1.0 0.0 0.0
19