SPV: Issue #180: push_constants don't have descriptor sets.

This commit is contained in:
John Kessenich 2016-03-08 21:36:22 -07:00
parent 2107c76a08
commit f7497e289b
5 changed files with 9 additions and 5 deletions

View file

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