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
commit 0f92ab380e

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,