Linker: Fix #1329: correctly merge unsized arrays, and fix link tests.

This commit is contained in:
John Kessenich
2018-04-01 21:22:34 -06:00
parent ed834895ea
commit 5a867acad5
6 changed files with 355 additions and 47 deletions

View File

@@ -2,7 +2,22 @@
layout(binding=1) uniform sampler2D s2D;
int a1[]; // max size from link1
int a2[]; // max size from link2
int b[];
int c[7];
int i;
buffer bnameRuntime { float r[]; };
buffer bnameImplicit { float m[4]; };
vec4 getColor()
{
return texture(s2D, vec2(0.5));
a1[2] = 1;
a2[9] = 1;
b[2] = 1;
c[3] = 1;
c[i] = 1;
return texture(s2D, vec2(0.5));
}