Vulkan: Include the info log in the shader compile error panic alert

The other backends do this, and it is helpful for quickly identifying errors during development.
This commit is contained in:
Pokechu22 2022-04-22 16:38:35 -07:00
parent 7ae71e643e
commit 0f92ab380e
1 changed files with 1 additions and 1 deletions

View File

@ -173,7 +173,7 @@ static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
stream << "Video Backend: " + g_video_backend->GetDisplayName();
stream.close();
PanicAlertFmt("{} (written to {})", msg, filename);
PanicAlertFmt("{} (written to {})\nDebug info:\n{}", msg, filename, shader->getInfoLog());
};
if (!shader->parse(GetCompilerResourceLimits(), default_version, profile, false, true, messages,