mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
deec1933e9
Saved about 21K, size down to 380K of MSVC x86 code. Fixed one bug that needs to be looked at on the master branch: The test for needing a Vulkan binding has a bug in it, "!layoutAttachment" which does not mean "no layoutAttachment", because that is non-zero. This is why some test and test results changed.
25 lines
403 B
GLSL
25 lines
403 B
GLSL
#version 450
|
|
|
|
vec4 getColor();
|
|
|
|
layout(location=0) out vec4 color;
|
|
|
|
int a1[]; // max size from link1
|
|
int a2[]; // max size from link2
|
|
int b[5];
|
|
int c[];
|
|
int i;
|
|
|
|
layout (binding = 0) buffer bnameRuntime { float r[]; };
|
|
layout (binding = 1) buffer bnameImplicit { float m[]; };
|
|
|
|
void main()
|
|
{
|
|
color = getColor();
|
|
|
|
a1[8] = 1;
|
|
a2[1] = 1;
|
|
b[i] = 1;
|
|
c[3] = 1;
|
|
}
|