mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 13:15:57 +00:00
UI to ask if want to reload all shader debug information in the capture
Triggered after closing the Shader debug search paths dialog
This commit is contained in:
@@ -693,6 +693,24 @@ void SettingsDialog::on_chooseSearchPaths_clicked()
|
||||
setLimitedPaths->AddAndOwnChild(makeSDString("$el"_lit, limited[i]));
|
||||
|
||||
RENDERDOC_SaveConfigSettings();
|
||||
|
||||
if(m_Ctx.IsCaptureLoaded())
|
||||
{
|
||||
QMessageBox::StandardButton ask = RDDialog::question(
|
||||
this, tr("Shader Search Paths Saved"),
|
||||
tr("The Shader Search Paths changes will automatically be applied the next time any "
|
||||
"capture is opened.<br><br>"
|
||||
"Would you like to reload all shader debug information in the current capture?"),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
|
||||
if(ask == QMessageBox::Yes)
|
||||
{
|
||||
m_Ctx.Replay().AsyncInvoke([this](IReplayController *r) {
|
||||
r->ReloadShaderDebugInformation();
|
||||
GUIInvoke::call(m_Ctx.GetMainWindow()->Widget(), [this]() { m_Ctx.RefreshStatus(); });
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user