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
perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
vs-integer-reduction.shader_test
blob
b30337b99c42d4a317cfa353b473eea3579990c7
1
[require]
2
GLSL >= 1.10
3
4
[vertex shader]
5
uniform ivec4 v;
6
varying vec4 color;
7
8
void main()
9
{
10
int i = v.x + v.y + v.z + v.w;
11
12
color = (i == 27) ? vec4(0, 1, 0, 1) : vec4(1, 0, 0, 1);
13
gl_Position = gl_Vertex;
14
}
15
16
[fragment shader]
17
varying vec4 color;
18
19
void main()
20
{
21
gl_FragColor = color;
22
}
23
24
[test]
25
uniform ivec4 v -2 -1 25 5
26
27
draw rect -1 -1 2 2
28
probe all rgba 0 1 0 1