mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-24 11:50:06 +00:00
6639be7c2d
Was previously accepted only in 450 or later. Fixes #2785
16 lines
279 B
GLSL
16 lines
279 B
GLSL
#version 430
|
|
#extension GL_NV_viewport_array2 :require
|
|
|
|
layout(vertices = 4) out;
|
|
|
|
out gl_PerVertex {
|
|
int gl_ViewportMask[2];
|
|
} gl_out[4];
|
|
|
|
layout (viewport_relative) out highp int gl_Layer;
|
|
|
|
void main()
|
|
{
|
|
gl_out[gl_InvocationID].gl_ViewportMask[0] = 1;
|
|
}
|