blob: 9acba275840be7878562d229191466cf25cd2d12 (
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
30
31
|
/* [config]
* expect_result: fail
* glsl_version: 1.20
* glsles_version: 1.00
* [end config]
*
* From page 19 (page 25 of the PDF) of the GLSL 1.20 spec:
*
* "This type can be used anywhere any other type can be used, including
* as the return value from a function
*
* float[5] foo() { }
*
* as a constructor of an array
*
* float[5](3.4, 4.2, 5.0, 5.2, 1.1)
*
* as an unnamed parameter
*
* void foo(float[5])"
*/
vec4[] a_function(vec4 [6] p);
uniform vec4 [6] an_array;
void main()
{
gl_Position = a_function(an_array)[0];
}
|