aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/execution/maximums/gl_MaxVaryingVectors.shader_test
blob: 871b07ca877e9a2d56b33d0b3f0d518fec52b2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# [description]
# Tests for GLSL ES 1.00 minimum maximums for the builtin constants.
#
# See the GLSL ES 1.0.17 specification, section 7.4, page 61.

[require]
GLSL ES >= 1.00
GL ES >= 2.0

[vertex shader]
attribute vec4 vertex;

void main(void)
{
	gl_Position = vertex;
}

[fragment shader]
void main(void)
{
	if (gl_MaxVaryingVectors >= 8)
		gl_FragColor = vec4(0, 1, 0, 0);
	else
		gl_FragColor = vec4(1, 0, 0, 0);
}

[test]
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.0 0.0