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