John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 1 | #version 450 core
|
| 2 |
|
| 3 | in gl_PerVertex {
|
| 4 | float gl_CullDistance[3];
|
| 5 | } gl_in[gl_MaxPatchVertices];
|
| 6 |
|
| 7 | out gl_PerVertex {
|
| 8 | float gl_CullDistance[3];
|
John Kessenich | 1be8063 | 2015-11-28 15:19:11 -0700 | [diff] [blame] | 9 | } gl_out[4];
|
John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 10 |
|
| 11 | void main()
|
| 12 | {
|
John Kessenich | 1be8063 | 2015-11-28 15:19:11 -0700 | [diff] [blame] | 13 | gl_out[gl_InvocationID].gl_CullDistance[2] = gl_in[1].gl_CullDistance[2];
|
John Kessenich | 6996841 | 2014-08-13 06:37:59 +0000 | [diff] [blame] | 14 | }
|
John Kessenich | 8de7e7b | 2017-06-04 13:05:50 -0600 | [diff] [blame] | 15 |
|
| 16 | layout(location = 4) out bName1 {
|
| 17 | float f;
|
| 18 | layout(location = 5) float g;
|
| 19 | } bInst1[2];
|
| 20 | layout(location = 6) out bName2 {
|
| 21 | float f;
|
| 22 | layout(location = 7) float g; // ERROR, location on array
|
| 23 | } bInst2[2][3];
|