Skip to content

Commit

Permalink
Merge pull request #10601 from Pokechu22/vulkan-shader-compile-error
Browse files Browse the repository at this point in the history
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.
3 changes: 2 additions & 1 deletion Source/Core/VideoBackends/Vulkan/ShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8e7c848

Please sign in to comment.