Skip to content

Commit

Permalink
DXIL Debugger fix an off by one error when matching resource binds
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Nov 20, 2024
1 parent 2a4c88f commit 8019491
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdoc/driver/shaders/dxil/dxil_debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4887,7 +4887,7 @@ rdcstr Debugger::GetResourceReferenceName(const DXIL::Program *program,
continue;
if(resRef.resourceBase.regBase > slot.shaderRegister)
continue;
if(resRef.resourceBase.regBase + resRef.resourceBase.regCount < slot.shaderRegister)
if(resRef.resourceBase.regBase + resRef.resourceBase.regCount <= slot.shaderRegister)
continue;

return program->GetHandleAlias(resRef.handleID);
Expand Down

0 comments on commit 8019491

Please sign in to comment.