1#version 450
2#extension GL_ARB_shader_viewport_layer_array : require
3#extension GL_NV_viewport_array2 : require
4
5layout (viewport_relative) out highp int gl_Layer;
6void main()
7{
8    gl_ViewportMask[0]            = 1;
9    gl_ViewportIndex              = 2;
10}