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-fs-uniform-bool-1.shader_test
blob
c536d47d9a2492c42fce09247e87391315020798
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
uniform bool testBool;
12
void main()
13
{
14
if (testBool)
15
gl_FragColor = vec4(0.0, 1.0, 0.0, 1.0);
16
else
17
gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0);
18
}
19
20
[test]
21
uniform int testBool 1
22
draw rect -1 -1 2 2
23
probe rgb 1 1 0.0 1.0 0.0