mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-05 21:35:49 +00:00
Fix python binding consistency with wrong naming scheme
This commit is contained in:
@@ -1346,7 +1346,7 @@ bool ShaderViewer::stepBack()
|
||||
if(IsFirstState())
|
||||
break;
|
||||
|
||||
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].sourceEqual(oldLine))
|
||||
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].SourceEqual(oldLine))
|
||||
continue;
|
||||
|
||||
break;
|
||||
@@ -1357,7 +1357,7 @@ bool ShaderViewer::stepBack()
|
||||
// now since a line can have multiple instructions, keep stepping (looking forward) until we
|
||||
// reach the first instruction with an identical line info
|
||||
while(!IsFirstState() &&
|
||||
m_Trace->lineInfo[GetPreviousState().nextInstruction].sourceEqual(oldLine))
|
||||
m_Trace->lineInfo[GetPreviousState().nextInstruction].SourceEqual(oldLine))
|
||||
{
|
||||
applyBackwardsChange();
|
||||
|
||||
@@ -1398,7 +1398,7 @@ bool ShaderViewer::stepNext()
|
||||
if(IsLastState())
|
||||
break;
|
||||
|
||||
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].sourceEqual(oldLine))
|
||||
if(m_Trace->lineInfo[GetCurrentState().nextInstruction].SourceEqual(oldLine))
|
||||
continue;
|
||||
|
||||
break;
|
||||
|
||||
@@ -468,7 +468,11 @@ struct LineColumnInfo
|
||||
return false;
|
||||
}
|
||||
|
||||
bool sourceEqual(const LineColumnInfo &o) const
|
||||
DOCUMENT(R"(:return: ``True`` if this object is equal to the parameter, disregarding
|
||||
:data:`disassemblyLine`.
|
||||
:rtype: ``bool``
|
||||
)");
|
||||
bool SourceEqual(const LineColumnInfo &o) const
|
||||
{
|
||||
// comparison without considering the disassembly line
|
||||
return fileIndex == o.fileIndex && lineStart == o.lineStart && lineEnd == o.lineEnd &&
|
||||
|
||||
Reference in New Issue
Block a user