mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
c1e61d6cff
control shaders. Fix bug in member remapping.
15 lines
404 B
GLSL
15 lines
404 B
GLSL
#version 450
|
|
|
|
#extension GL_NVX_multiview_per_view_attributes :require
|
|
|
|
layout(vertices = 4) out;
|
|
out gl_PerVertex {
|
|
int gl_ViewportMaskPerViewNV[];
|
|
vec4 gl_PositionPerViewNV[];
|
|
} gl_out[];
|
|
void main()
|
|
{
|
|
gl_out[gl_InvocationID].gl_ViewportMaskPerViewNV[0] = 1;
|
|
gl_out[gl_InvocationID].gl_PositionPerViewNV[0] = gl_in[1].gl_Position + gl_in[1].gl_PositionPerViewNV[0];
|
|
}
|