Update to newest SPIRV-Tools. It checks the Vulkan rule that all resources must have a set and binding decoration, which many tests fail. So add code to set a default value of zero. Also disable PCH for Ninja builds.
This commit is contained in:
parent
00054da5e6
commit
0a93cfbb79
234 changed files with 1259 additions and 15 deletions
|
|
@ -7165,6 +7165,10 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
|
|||
}
|
||||
if (symbol->getQualifier().hasBinding())
|
||||
builder.addDecoration(id, spv::DecorationBinding, symbol->getQualifier().layoutBinding);
|
||||
else if (IsDescriptorResource(symbol->getType())) {
|
||||
// default to 0
|
||||
builder.addDecoration(id, spv::DecorationBinding, 0);
|
||||
}
|
||||
if (symbol->getQualifier().hasAttachment())
|
||||
builder.addDecoration(id, spv::DecorationInputAttachmentIndex, symbol->getQualifier().layoutAttachment);
|
||||
if (glslangIntermediate->getXfbMode()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue