Fix #1065: don't validate Vulkan binding numbers.
To handle sparse assignments, don't check maxCombinedTextureImageUnits.
This commit is contained in:
parent
715c353a15
commit
ac51602455
2 changed files with 4 additions and 1 deletions
|
|
@ -4614,7 +4614,7 @@ void TParseContext::layoutTypeCheck(const TSourceLoc& loc, const TType& type)
|
|||
} else
|
||||
lastBinding += type.getCumulativeArraySize();
|
||||
}
|
||||
if (lastBinding >= resources.maxCombinedTextureImageUnits)
|
||||
if (spvVersion.vulkan == 0 && lastBinding >= resources.maxCombinedTextureImageUnits)
|
||||
error(loc, "sampler binding not less than gl_MaxCombinedTextureImageUnits", "binding", type.isArray() ? "(using array)" : "");
|
||||
}
|
||||
if (type.getBasicType() == EbtAtomicUint) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue