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
glsl-array-bounds: set out-of-bounds array index inside shader
[piglit.git]
/
tests
/
shaders
/
glsl-fs-log2.shader_test
blob
e0d617557b1995390925f2ede454eaab842a27ec
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 vec4 args1, args2;
12
13
void main()
14
{
15
gl_FragColor = log2(args1) + args2;
16
}
17
18
[test]
19
uniform vec4 args1 1.0 2.0 4.0 0.0
20
uniform vec4 args2 0.5 -0.5 -1.5 0.0
21
draw rect -1 -1 2 2
22
probe all rgb 0.5 0.5 0.5