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-array.shader_test
blob
4c5347624b5872afe6a4e09662dbd1f98a8449d3
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
s1 a[2];
13
a[0].v4 = vec4(0.25, 0.5, 0.75, 1.0);
14
a[0].f1 = 0.0;
15
a[1] = a[0];
16
gl_FragColor = a[1].v4;
17
}
18
19
20
[test]
21
draw rect -1 -1 2 2
22
relative probe rgba (0.5, 0.5) (0.25, 0.5, 0.75, 1.0)