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-pp-elif-no-expression-1.shader_test
blob
e9de44de618dd4079d89df64e9e638eeaa527f0e
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
8
}
9
10
[fragment shader]
11
void main()
12
{
13
#if 1
14
gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
15
#elif
16
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
17
#endif
18
}
19
20
[test]
21
clear color 0.0 0.0 0.0 0.0
22
clear
23
ortho
24
draw rect 10 10 10 10
25
probe rgb 15 15 0.0 1.0 0.0