mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-13 21:50:06 +00:00
ba6a3c290e
There was some ambiguity/contradiction in this behavior, and Khronos decided glslang should always have these outside blocks, rather than have stage/vendor/target variations.
17 lines
306 B
GLSL
17 lines
306 B
GLSL
#version 450
|
|
#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;
|
|
gl_ViewportIndex = 2;
|
|
}
|