Remove "preferSourceDebug" compile flag, use sourceDebugInformation

* This was previously only relevant for DXBC shaders that could have source
  debug information but didn't prefer source debug unless optimisation was
  disabled. This is inconsistent with how things are handled on SPIR-V and DXIL
  and in general it's considered now that the benefits of debugging in source
  outweigh the problems of debugging optimised code.
This commit is contained in:
baldurk
2026-08-13 17:46:48 +01:00
parent 7a1233e17e
commit 3ea0d7a37d
11 changed files with 10 additions and 26 deletions
+1 -10
View File
@@ -1105,16 +1105,7 @@ void ShaderViewer::debugShader(const ShaderReflection *shader, ResourceId pipeli
m_Variables.push_back(c.after);
}
bool preferSourceDebug = false;
for(const ShaderCompileFlag &flag : m_ShaderDetails->debugInfo.compileFlags.flags)
{
if(flag.name == "preferSourceDebug")
{
preferSourceDebug = true;
break;
}
}
bool preferSourceDebug = m_ShaderDetails->debugInfo.sourceDebugInformation;
updateDebugState();