2014-08-13 06:37:59 +00:00
|
|
|
#version 450 core
|
|
|
|
|
|
|
|
in gl_PerVertex {
|
|
|
|
float gl_CullDistance[3];
|
|
|
|
} gl_in[gl_MaxPatchVertices];
|
|
|
|
|
|
|
|
out gl_PerVertex {
|
|
|
|
float gl_CullDistance[3];
|
2015-11-28 22:19:11 +00:00
|
|
|
} gl_out[4];
|
2014-08-13 06:37:59 +00:00
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2015-11-28 22:19:11 +00:00
|
|
|
gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
2014-08-13 06:37:59 +00:00
|
|
|
}
|
2017-06-04 19:05:50 +00:00
|
|
|
|
|
|
|
layout(location = 4) out bName1 {
|
|
|
|
float f;
|
|
|
|
layout(location = 5) float g;
|
|
|
|
} bInst1[2];
|
|
|
|
layout(location = 6) out bName2 {
|
|
|
|
float f;
|
|
|
|
layout(location = 7) float g; // ERROR, location on array
|
|
|
|
} bInst2[2][3];
|