SPV: Allow push constant buffers to not have an instance name.

This commit is contained in:
John Kessenich
2017-03-06 08:51:35 -07:00
parent 789086a820
commit 33f85b6e59
7 changed files with 89 additions and 9 deletions

View File

@@ -2,5 +2,5 @@
// For the version, it uses the latest git tag followed by the number of commits.
// For the date, it uses the current date (when then script is run).
#define GLSLANG_REVISION "Overload400-PrecQual.1875"
#define GLSLANG_DATE "03-Mar-2017"
#define GLSLANG_REVISION "Overload400-PrecQual.1878"
#define GLSLANG_DATE "06-Mar-2017"

View File

@@ -5797,11 +5797,8 @@ void TParseContext::blockQualifierCheck(const TSourceLoc& loc, const TQualifier&
error(loc, "cannot use sample qualifier on an interface block", "sample", "");
if (qualifier.invariant)
error(loc, "cannot use invariant qualifier on an interface block", "invariant", "");
if (qualifier.layoutPushConstant) {
if (qualifier.layoutPushConstant)
intermediate.addPushConstantCount();
if (! instanceName)
error(loc, "requires an instance name", "push_constant", "");
}
}
//