1#version 450 2#extension GL_NV_viewport_array2 :require 3 4layout(vertices = 4) out; 5 6out gl_PerVertex { 7 int gl_ViewportMask[2]; 8} gl_out[4]; 9 10layout (viewport_relative) out highp int gl_Layer; 11 12void main() 13{ 14 gl_out[gl_InvocationID].gl_ViewportMask[0] = 1; 15 gl_ViewportIndex = 2; 16} 17