summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-link-struct-array.frag
blob: eaf8f0736bd539631db3ec1abe6ea195d47ed767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct s {
	vec4 v[1];
	float f;
};
s a[1];

void main()
{
	a[0].v[0] = vec4(0.0, 0.0, 0.0, 0.0);
	a[0].f = 1.0;
	gl_FragColor = vec4(0.0, a[0].f, 0.0 ,1.0);
}