mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
When setting up printf location only patch it into entry point function
This commit is contained in:
@@ -798,10 +798,13 @@ void AnnotateShader(const ShaderReflection &refl, const SPIRVPatchData &patchDat
|
||||
while(it.opcode() == rdcspv::Op::Variable)
|
||||
++it;
|
||||
|
||||
for(const rdcspv::Operation &op : locationGather)
|
||||
if(funcId == entryID)
|
||||
{
|
||||
editor.AddOperation(it, op);
|
||||
++it;
|
||||
for(const rdcspv::Operation &op : locationGather)
|
||||
{
|
||||
editor.AddOperation(it, op);
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
// now patch accesses in the function body
|
||||
|
||||
Reference in New Issue
Block a user