Allow redeclaration of builtin interface blocks in mesh shader
Apart from allowing redeclaration of gl_MeshPerVertexNV and gl_MeshPerPrimitiveNV blocks, this change also - - Resize clip/cull perview distances based on static index use - Error out use of both single-view and per-view builtins - Add new gtests with redeclared blocks and edit existing test output - Fix couple of typos
This commit is contained in:
parent
ca042a0ffb
commit
035cbbe3d0
13 changed files with 875 additions and 305 deletions
|
|
@ -5296,8 +5296,8 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|||
"float gl_ClipDistance[];"
|
||||
"float gl_CullDistance[];"
|
||||
"perviewNV vec4 gl_PositionPerViewNV[];"
|
||||
"perviewNV float gl_ClipDistancePerViewNV[][8];"
|
||||
"perviewNV float gl_CullDistancePerViewNV[][8];"
|
||||
"perviewNV float gl_ClipDistancePerViewNV[][];"
|
||||
"perviewNV float gl_CullDistancePerViewNV[][];"
|
||||
"} gl_MeshVerticesNV[];"
|
||||
);
|
||||
|
||||
|
|
@ -5309,7 +5309,7 @@ void TBuiltIns::initialize(int version, EProfile profile, const SpvVersion& spvV
|
|||
"int gl_ViewportIndex;"
|
||||
"int gl_ViewportMask[];"
|
||||
"perviewNV int gl_LayerPerViewNV[];"
|
||||
"perviewNV int gl_ViewportMaskPerViewNV[][1];"
|
||||
"perviewNV int gl_ViewportMaskPerViewNV[][];"
|
||||
"} gl_MeshPrimitivesNV[];"
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue