chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 1 | #version 450
|
| 2 | #extension GL_NV_viewport_array2 :require
|
| 3 |
|
| 4 | layout(vertices = 4) out;
|
| 5 |
|
| 6 | out gl_PerVertex {
|
| 7 | int gl_ViewportMask[2];
|
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 8 | } gl_out[4];
|
| 9 |
|
John Kessenich | ba6a3c2 | 2017-09-13 13:22:50 -0600 | [diff] [blame] | 10 | layout (viewport_relative) out highp int gl_Layer;
|
| 11 |
|
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 12 | void main()
|
| 13 | {
|
John Kessenich | ba6a3c2 | 2017-09-13 13:22:50 -0600 | [diff] [blame] | 14 | gl_out[gl_InvocationID].gl_ViewportMask[0] = 1;
|
| 15 | gl_ViewportIndex = 2;
|
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 16 | }
|