mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Insert printf location initialisation after local function variables
This commit is contained in:
@@ -794,6 +794,10 @@ void AnnotateShader(const ShaderReflection &refl, const SPIRVPatchData &patchDat
|
||||
}
|
||||
}
|
||||
|
||||
// skip past any local variables
|
||||
while(it.opcode() == rdcspv::Op::Variable)
|
||||
++it;
|
||||
|
||||
for(const rdcspv::Operation &op : locationGather)
|
||||
{
|
||||
editor.AddOperation(it, op);
|
||||
|
||||
Reference in New Issue
Block a user