mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Add some cross-linking for panels that view a single resource
* We add a button with a link icon to indicate that it goes to the resource details. We'll re-use the crosshair as a visual metaphor for any interactive widget that goes to the resource inspector. * To remove any possible confusion, we change the icon for the texture list and locked tabs in the texture viewer to not include the link.
This commit is contained in:
@@ -158,6 +158,16 @@ void ConstantBufferPreviewer::on_setFormat_toggled(bool checked)
|
||||
ui->splitter->handle(1)->setEnabled(true);
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::on_resourceDetails_clicked()
|
||||
{
|
||||
if(!m_Ctx.HasResourceInspector())
|
||||
m_Ctx.ShowResourceInspector();
|
||||
|
||||
m_Ctx.GetResourceInspector()->Inspect(m_cbuffer);
|
||||
|
||||
ToolWindowManager::raiseToolWindow(m_Ctx.GetResourceInspector()->Widget());
|
||||
}
|
||||
|
||||
void ConstantBufferPreviewer::on_saveCSV_clicked()
|
||||
{
|
||||
QString filename = RDDialog::getSaveFileName(this, tr("Export buffer data as CSV"), QString(),
|
||||
|
||||
Reference in New Issue
Block a user