blob: bf5c08373b2c9c0a38e068cb7ec8cfe9ba6c59f8 [file] [log] [blame]
John Kessenich69968412014-08-13 06:37:59 +00001#version 450 core
2
3in gl_PerVertex {
4 float gl_CullDistance[3];
5} gl_in[gl_MaxPatchVertices];
6
7out gl_PerVertex {
8 float gl_CullDistance[3];
John Kessenich1be80632015-11-28 15:19:11 -07009} gl_out[4];
John Kessenich69968412014-08-13 06:37:59 +000010
11void main()
12{
John Kessenich1be80632015-11-28 15:19:11 -070013 gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
John Kessenich69968412014-08-13 06:37:59 +000014}
John Kessenich8de7e7b2017-06-04 13:05:50 -060015
16layout(location = 4) out bName1 {
17 float f;
18 layout(location = 5) float g;
19} bInst1[2];
20layout(location = 6) out bName2 {
21 float f;
22 layout(location = 7) float g; // ERROR, location on array
23} bInst2[2][3];