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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
glsl-vs-deadcode-2.shader_test
blob
47d5e9d25afee60c65d5a6d45fbafd2e49eccfca
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
varying vec3 color;
6
uniform vec4 v1;
7
uniform float v2;
8
uniform float v3;
9
10
void main()
11
{
12
gl_Position = gl_Vertex;
13
14
color.xyz = v1.xyz;
15
color.y = v2;
16
color.z = v3;
17
}
18
19
[fragment shader]
20
varying vec3 color;
21
22
void main()
23
{
24
gl_FragColor = vec4(color, 0.4);
25
}
26
27
[test]
28
uniform vec4 v1 0.1 0.9 0.9
29
uniform float v2 0.2
30
uniform float v3 0.3
31
32
draw rect -1 -1 2 2
33
34
probe all rgba 0.1 0.2 0.3 0.4