Skip to content
Permalink
Browse files
Merge pull request #10601 from Pokechu22/vulkan-shader-compile-error
Vulkan: Improve shader compile error handling
  • Loading branch information
Pokechu22 committed Apr 24, 2022
2 parents c42392c + 0f92ab3 commit 8e7c848
Showing 1 changed file with 2 additions and 1 deletion.
@@ -171,8 +171,9 @@ static std::optional<SPIRVCodeVector> CompileShaderToSPV(EShLanguage stage,
stream << "\n";
stream << "Dolphin Version: " + Common::GetScmRevStr() + "\n";
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,

0 comments on commit 8e7c848

Please sign in to comment.