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:
Jake Turner
2026-02-06 11:59:17 +13:00
parent cbecdfacb0
commit ba60ac46d0
@@ -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(); });
});
}
}
}
}