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-algebraic-add-add-4.shader_test
blob
2785e9e06b5258d358d2730244eec0d5272fa7a8
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 color;
12
uniform float add;
13
void main()
14
{
15
gl_FragColor = ((1.0 + color) + add) + -0.5;
16
}
17
18
[test]
19
uniform float add -0.5
20
uniform vec4 color 0.0 1.0 0.0 0.0
21
draw rect -1 -1 2 2
22
probe all rgba 0.0 1.0 0.0 0.0