1#version 450 2 3#extension GL_NVX_multiview_per_view_attributes :require 4 5layout(vertices = 4) out; 6out gl_PerVertex { 7 int gl_ViewportMaskPerViewNV[]; 8 vec4 gl_PositionPerViewNV[]; 9 } gl_out[]; 10void main() 11{ 12 gl_out[gl_InvocationID].gl_ViewportMaskPerViewNV[0] = 1; 13 gl_out[gl_InvocationID].gl_PositionPerViewNV[0] = gl_in[1].gl_Position; 14} 15