blob: 1923ce87c96d1894e30841f6c09f88d469de3a16 (
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
|
[require]
GLSL >= 1.10
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS >= 1024
[vertex shader]
void main()
{
gl_Position = gl_Vertex;
}
[fragment shader]
/* Test that we can access a statically indexed array element of a
* very large fragment shader uniform array. Note that this array is
* much larger than the minimum MAX_FRAGMENT_UNIFORM_COMPONENTS, so a
* driver may just reject this shader.
*/
uniform vec4 arg[1024];
void main()
{
gl_FragColor = arg[900];
}
[test]
uniform vec4 arg[900] 0.0 1.0 0.0 0.0
draw rect -1 -1 2 2
probe all rgba 0.0 1.0 0.0 0.0
|