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
/
glsl-const-initializer-03.shader_test
blob
a3bbd39c14c3053478fe3a1a61a013796596b43d
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
uniform float a;
6
uniform float b;
7
void main(void)
8
{
9
struct S {
10
float a;
11
float b;
12
float c;
13
float d;
14
} s = S(0.5, 0.5, 0.5, 0.5);
15
16
s.a = s.a + a;
17
s.a = s.a - b;
18
gl_FragColor = vec4(s.a, s.b, s.c, s.d);
19
}
20
21
[test]
22
uniform float a 0.3
23
uniform float b 0.3
24
draw rect -1 -1 2 2
25
probe all rgba 0.5 0.5 0.5 0.5
26