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-abs.shader_test
blob
34a1ac93266dbf93d95924555a6cbc7c695bc326
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 = abs(-0.5);
14
const float y = abs(0.0);
15
const float z = abs(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.5 0.0 0.5