SPV: Certain decorations are missing for structure-typed in/out variables.
This commit is contained in:
parent
187254b92c
commit
c884b4a47f
5 changed files with 9 additions and 1 deletions
|
|
@ -4024,7 +4024,7 @@ spv::Id TGlslangToSpvTraverser::getSymbolId(const glslang::TIntermSymbol* symbol
|
|||
id = createSpvVariable(symbol);
|
||||
symbolValues[symbol->getId()] = id;
|
||||
|
||||
if (! symbol->getType().isStruct()) {
|
||||
if (symbol->getBasicType() != glslang::EbtBlock) {
|
||||
addDecoration(id, TranslatePrecisionDecoration(symbol->getType()));
|
||||
addDecoration(id, TranslateInterpolationDecoration(symbol->getType().getQualifier()));
|
||||
addDecoration(id, TranslateAuxiliaryStorageDecoration(symbol->getType().getQualifier()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue