mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
qrenderdoc: Show currently selected event in the API inspector
Currently, selecting an event with children (e.g. vkCmdExecuteCommands) in the event browser will cause the API inspector window to show the final child event, rather than the event itself. This behaviour makes sense everywhere else: selecting an event with children shows the state after all children have completed. However, for the API inspector, we want to be able see API calls for the parent event when it is selected rather than those of its last child, particularly in the case of vkCmdExecuteCommands which may have other API calls leading up to it. To allow this, distinguish between the "current event" and "selected event". For an event with children, the former refers to the last child, while the latter refers to the event itself. ILogViewerForm now has two separate event callbacks for when either one changes. The API inspector now makes use of the selected event, while everything else continues to use the current event.
This commit is contained in:
committed by
Baldur Karlsson
parent
ba30bc0a57
commit
6e2fc42cbd
@@ -91,7 +91,7 @@ void ConstantBufferPreviewer::OnLogfileClosed()
|
||||
ui->saveCSV->setEnabled(false);
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::OnEventSelected(uint32_t eventID)
|
||||
void ConstantBufferPreviewer::OnEventChanged(uint32_t eventID)
|
||||
{
|
||||
uint64_t offs = 0;
|
||||
uint64_t size = 0;
|
||||
@@ -165,7 +165,7 @@ void ConstantBufferPreviewer::processFormat(const QString &format)
|
||||
ui->formatSpecifier->setErrors(errors);
|
||||
}
|
||||
|
||||
OnEventSelected(m_Ctx->CurEvent());
|
||||
OnEventChanged(m_Ctx->CurEvent());
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::addVariables(QTreeWidgetItem *root,
|
||||
|
||||
Reference in New Issue
Block a user