mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Require explicit debug information to support source debugging
* SPIR-V files currently can have source files, but not source debugging information, which is a distinction that didn't exist otherwise.
This commit is contained in:
@@ -542,10 +542,10 @@ void ShaderViewer::debugShader(const ShaderBindpointMapping *bind, const ShaderR
|
||||
ui->floatView->hide();
|
||||
}
|
||||
|
||||
if(m_ShaderDetails->debugInfo.files.isEmpty())
|
||||
if(!m_ShaderDetails->debugInfo.sourceDebugInformation)
|
||||
{
|
||||
ui->debugToggle->setEnabled(false);
|
||||
ui->debugToggle->setText(tr("Source Unavailable"));
|
||||
ui->debugToggle->setText(tr("Source debugging Unavailable"));
|
||||
}
|
||||
|
||||
ui->debugVars->setColumns({tr("Name"), tr("Value")});
|
||||
|
||||
Reference in New Issue
Block a user