support SPV_NV_viewport_array2 and SPV_NV_stereo_view_rendering
This commit is contained in:
parent
22f25d80c6
commit
771d89fc36
21 changed files with 654 additions and 36 deletions
16
Test/spv.viewportArray2.tesc
Normal file
16
Test/spv.viewportArray2.tesc
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#version 450
|
||||
#extension GL_NV_viewport_array2 :require
|
||||
|
||||
layout(vertices = 4) out;
|
||||
|
||||
out gl_PerVertex {
|
||||
int gl_ViewportMask[2];
|
||||
int gl_ViewportIndex;
|
||||
layout (viewport_relative) out highp int gl_Layer;
|
||||
} gl_out[4];
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_out[gl_InvocationID].gl_ViewportMask[0] = 1;
|
||||
gl_out[gl_InvocationID].gl_ViewportIndex = 2;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue