GLSL: Only require constant for subgroupBroadcast when SPV < 1.5.
This commit is contained in:
parent
8317e6c683
commit
f766fabaa0
1 changed files with 5 additions and 3 deletions
|
|
@ -2155,9 +2155,11 @@ void TParseContext::builtInOpCheck(const TSourceLoc& loc, const TFunction& fnCan
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EOpSubgroupBroadcast:
|
case EOpSubgroupBroadcast:
|
||||||
|
if (spvVersion.spv < EShTargetSpv_1_5) {
|
||||||
// <id> must be an integral constant expression.
|
// <id> must be an integral constant expression.
|
||||||
if ((*argp)[1]->getAsConstantUnion() == nullptr)
|
if ((*argp)[1]->getAsConstantUnion() == nullptr)
|
||||||
error(loc, "argument must be compile-time constant", "id", "");
|
error(loc, "argument must be compile-time constant", "id", "");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EOpBarrier:
|
case EOpBarrier:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue