GLSL/SPV: Pre SPIR-V 1.5, subgroupQuadBroadcast index must be constant
This commit is contained in:
parent
101ca388fb
commit
765cee8441
3 changed files with 231 additions and 216 deletions
|
|
@ -2155,6 +2155,7 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
|||
break;
|
||||
|
||||
case EOpSubgroupBroadcast:
|
||||
case EOpSubgroupQuadBroadcast:
|
||||
if (spvVersion.spv < EShTargetSpv_1_5) {
|
||||
// <id> must be an integral constant expression.
|
||||
if ((*argp)[1]->getAsConstantUnion() == nullptr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue