File: mixedArrayDecls.frag

package info (click to toggle)
glslang 16.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 50,520 kB
  • sloc: cpp: 88,987; yacc: 4,227; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (30 lines) | stat: -rw-r--r-- 436 bytes parent folder | download | duplicates (15)
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
#version 450

struct S {
    int[3] a[2], b[5];
};

S s;

int[5] c[4], d[8];
int[9] e[], f[];
int e[11][9];
int f[13][9];

int[14] g[], h[];

int [14][15][6] foo(int[6] p[14][15]) { return p; }

void main()
{
    g[3];
    h[2];
}

float[4][3][2] bar() { float[3][2] a[4]; return a; }

in inbname {
    float[7] f[8][9];
} inbinst[4][5][6];

float[3][2] barm[4]() { float[3][2] a[4]; return a; }  // ERROR