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-const-builtin-ceil.shader_test
blob
c27ca17cb2865d2c741b3477335869902f5053c5
1
[require]
2
GLSL >= 1.20
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
const float x = ceil(-0.5);
14
const float y = ceil(0.0);
15
const float z = ceil(0.5);
16
gl_FragColor = vec4(x, y, z, 1.0);
17
}
18
19
[test]
20
draw rect -1 -1 2 2
21
probe all rgb 0.0 0.0 1.0