repo.or.cz
/
piglit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
arb_vertex_program
/
vp-constant-array.shader_test
blob
30d718970fd441b62e793497a3d1bdc1522033b7
1
# Tests loading of an entry in a constant array.
2
3
[require]
4
GL >= 1.3
5
ARB_vertex_program
6
7
[vertex program]
8
!!ARBvp1.0
9
OPTION ARB_position_invariant;
10
PARAM vals[4] = { {0.5, 1.0, 2.0, 0.0},
11
{1.0, 0.0, 0.8, 0.0},
12
{1.0, 0.0, 0.5, 0.0},
13
{0.8, 1.0, 0.0, 0.0}
14
};
15
MOV result.color, vals[3];
16
END
17
18
[test]
19
ortho 0 1 0 1
20
clear color 0.0 0.0 1.0 1.0
21
clear
22
draw rect 0 0 1 1
23
probe all rgba 0.8 1.0 0.0 0.0
24