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-i2b.shader_test
blob
7caadf5d2a75ecd89e8ecdd6c643ad913e141266
1
[require]
2
GLSL >= 1.20
3
4
[vertex shader]
5
void main()
6
{
7
gl_Position = gl_Vertex;
8
}
9
10
[fragment shader]
11
#version 120
12
13
uniform int arg0;
14
uniform int arg1;
15
16
void main()
17
{
18
bool t = bool(arg0);
19
bool f = bool(arg1);
20
21
gl_FragColor = vec4(1.0 - float(t), float(t) / 2.0, float(f), 1.0 - float(f));
22
}
23
24
[test]
25
uniform int arg0 2
26
uniform int arg1 0
27
draw rect -1 -1 2 2
28
probe all rgba 0.0 0.5 0.0 1.0