Generate error for binding on push_constant

This commit is contained in:
Greg Fischer 2021-11-10 15:03:07 -07:00
parent 9c5309a22a
commit 002b3f55c7
3 changed files with 32 additions and 26 deletions

View file

@ -6496,6 +6496,8 @@ void TParseContext::layoutQualifierCheck(const TSourceLoc& loc, const TQualifier
error(loc, "can only be used with a uniform", "push_constant", "");
if (qualifier.hasSet())
error(loc, "cannot be used with push_constant", "set", "");
if (qualifier.hasBinding())
error(loc, "cannot be used with push_constant", "binding", "");
}
if (qualifier.hasBufferReference()) {
if (qualifier.storage != EvqBuffer)