Implement NVX_multiview_per_view_attributes

This commit is contained in:
chaoc
2017-02-14 14:52:34 -08:00
parent 7225a1cb1e
commit df3956c50f
17 changed files with 285 additions and 60 deletions

View File

@@ -0,0 +1,14 @@
#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;
}