mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-06 20:31:35 +00:00
Store location not byte offset for loose globals in SPIR-V
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user