blob: 7fc208a45efd8f145179287064777dbf78aa874f [file] [log] [blame]
chaoc771d89f2017-01-13 01:10:53 -08001#version 450
2#extension GL_NV_viewport_array2 :require
3
4layout(vertices = 4) out;
5
6out gl_PerVertex {
7 int gl_ViewportMask[2];
chaoc771d89f2017-01-13 01:10:53 -08008} gl_out[4];
9
John Kessenichba6a3c22017-09-13 13:22:50 -060010layout (viewport_relative) out highp int gl_Layer;
11
chaoc771d89f2017-01-13 01:10:53 -080012void main()
13{
John Kessenichba6a3c22017-09-13 13:22:50 -060014 gl_out[gl_InvocationID].gl_ViewportMask[0] = 1;
15 gl_ViewportIndex = 2;
chaoc771d89f2017-01-13 01:10:53 -080016}