SPV: Correct generation of transparent offsets for implicitly assigned offsets.

This commit is contained in:
John Kessenich 2015-09-11 15:15:23 -06:00
parent 31ed4830d1
commit a06bd527ca
2 changed files with 3 additions and 3 deletions

View File

@ -1426,7 +1426,7 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty
int nextOffset;
updateMemberOffset(type, glslangType, offset, nextOffset);
if (offset >= 0)
builder.addMemberDecoration(spvType, member, spv::DecorationOffset, glslangType.getQualifier().layoutOffset);
builder.addMemberDecoration(spvType, member, spv::DecorationOffset, offset);
offset = nextOffset;
}

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 "3.0.746"
#define GLSLANG_DATE "09-Sep-2015"
#define GLSLANG_REVISION "3.0.747"
#define GLSLANG_DATE "11-Sep-2015"