aboutsummaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-fs-uniform-array-loop-unroll.shader_test
blob: f306eec9dbd5300428d95b4f210a60dfd0fc5aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# https://bugs.freedesktop.org/show_bug.cgi?id=59429

[require]
GLSL >= 1.10

[vertex shader]
void main()
{
	gl_Position = vec4(0,0,0,0);
}

[fragment shader]
uniform vec4 u[1];
void main()
{
	vec4 c = vec4(0,0,0,0);
	for (int i = 0; i < 2; ++i)
		c += u[i];
	gl_FragColor = c;
}