mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 11:19:40 +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.
24 lines
421 B
GLSL
24 lines
421 B
GLSL
#version 450
|
|
|
|
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;
|
|
|
|
layout (binding = 0) buffer bnameRuntime { float r[]; };
|
|
layout (binding = 1) buffer bnameImplicit { float m[4]; };
|
|
|
|
vec4 getColor()
|
|
{
|
|
a1[2] = 1;
|
|
a2[9] = 1;
|
|
b[2] = 1;
|
|
c[3] = 1;
|
|
c[i] = 1;
|
|
|
|
return texture(s2D, vec2(0.5));
|
|
}
|