Store location not byte offset for loose globals in SPIR-V

This commit is contained in:
baldurk committed 2019-08-22 10:16:18 +01:00
1 parent 4c9fec4cb4
commit 346ee91f70
1 file changed
+1 -1
@@ -1040,7 +1040,7 @@ void Reflector::MakeReflection(const GraphicsAPI sourceAPI, const ShaderStage st
else
constant.type.descriptor.elements = 0;
constant.byteOffset = decorations[global.id].offset;
constant.byteOffset = decorations[global.id].location;
globalsblock.variables.push_back(constant);
}