From 0f92ab380ef48ed11c9300c9290a5ad9bf9665d8 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 22 Apr 2022 16:38:35 -0700 Subject: [PATCH] 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. --- Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp index 80f9242d83..b8f0a236b1 100644 --- a/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp +++ b/Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp @@ -173,7 +173,7 @@ static std::optional 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,