SPV: Correct generation of transparent offsets for implicitly assigned offsets.
This commit is contained in:
parent
31ed4830d1
commit
a06bd527ca
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user