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:
baldurk
2021-11-02 12:27:42 +00:00
parent 33db9be271
commit de38cf7b9c
3 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -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")});