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
/
struct.shader_test
blob
07f732782ea8aa4d07ce3994fd6b7fb1f1858389
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
struct s1 {
6
float f1;
7
vec4 v4;
8
};
9
10
void main()
11
{
12
vec4 scale = vec4(0.5);
13
vec4 bias = vec4(0.1);
14
s1 a;
15
a.v4 = vec4(0.25, 0.5, 0.75, 1.0);
16
a.f1 = 0.0;
17
gl_FragColor = a.v4 * scale + bias;
18
}
19
20
21
[test]
22
draw rect -1 -1 2 2
23
relative probe rgba (0.5, 0.5) (0.225, 0.35, 0.475, 0.6)