SPV: Fix #995: Include memory decorations on parameters.

This commit is contained in:
John Kessenich
2017-07-18 02:58:06 -06:00
parent fad6297206
commit 961cd35b73
6 changed files with 171 additions and 0 deletions

View File

@@ -2918,6 +2918,7 @@ void TGlslangToSpvTraverser::makeFunctions(const glslang::TIntermSequence& glslF
spv::Decoration paramPrecision = TranslatePrecisionDecoration(type);
if (paramPrecision != spv::NoPrecision)
decorations.push_back(paramPrecision);
TranslateMemoryDecoration(type.getQualifier(), decorations);
};
for (int f = 0; f < (int)glslFunctions.size(); ++f) {