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
ext_gpu_shader4: add compiler tests for everything
[piglit.git]
/
tests
/
spec
/
glsl-1.10
/
execution
/
struct-nested.shader_test
blob
de442b81db4c452e52e21498c688015f36df24e0
1
[require]
2
GLSL >= 1.10
3
4
[fragment shader]
5
struct s1 {
6
float foo;
7
vec4 v4;
8
};
9
struct s2 {
10
float bar;
11
s1 s;
12
float baz;
13
};
14
15
void main()
16
{
17
s2 a;
18
a.s.v4 = vec4(0.25, 0.5, 0.75, 1.0);
19
a.bar = 0.0;
20
a.baz = 0.0;
21
a.s.foo = 0.0;
22
gl_FragColor = a.s.v4;
23
}
24
25
26
[test]
27
draw rect -1 -1 2 2
28
relative probe rgba (0.5, 0.5) (0.25, 0.5, 0.75, 1.0)