2017-01-24 00:53:16 +00:00
|
|
|
#version 450
|
|
|
|
|
2018-02-22 01:19:49 +00:00
|
|
|
layout(binding=1) uniform sampler2D s2D;
|
2017-01-24 00:53:16 +00:00
|
|
|
|
2018-04-02 03:22:34 +00:00
|
|
|
int a1[]; // max size from link1
|
|
|
|
int a2[]; // max size from link2
|
|
|
|
int b[];
|
|
|
|
int c[7];
|
|
|
|
int i;
|
|
|
|
|
2019-08-13 14:00:30 +00:00
|
|
|
layout (binding = 0) buffer bnameRuntime { float r[]; };
|
|
|
|
layout (binding = 1) buffer bnameImplicit { float m[4]; };
|
2018-04-02 03:22:34 +00:00
|
|
|
|
2017-01-24 00:53:16 +00:00
|
|
|
vec4 getColor()
|
|
|
|
{
|
2018-04-02 03:22:34 +00:00
|
|
|
a1[2] = 1;
|
|
|
|
a2[9] = 1;
|
|
|
|
b[2] = 1;
|
|
|
|
c[3] = 1;
|
|
|
|
c[i] = 1;
|
|
|
|
|
|
|
|
return texture(s2D, vec2(0.5));
|
2017-01-24 00:53:16 +00:00
|
|
|
}
|