mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-27 19:13:04 +00:00
Print shader code involved in failed linking
This commit is contained in:
parent
b821cb1739
commit
66e2533c90
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), new MTLCompileOptions(IntPtr.Zero), ref libraryError);
|
var shaderLibrary = device.NewLibrary(StringHelper.NSString(shader.Code), new MTLCompileOptions(IntPtr.Zero), ref libraryError);
|
||||||
if (libraryError != IntPtr.Zero)
|
if (libraryError != IntPtr.Zero)
|
||||||
{
|
{
|
||||||
|
Logger.Warning?.PrintMsg(LogClass.Gpu, shader.Code);
|
||||||
Logger.Warning?.Print(LogClass.Gpu, $"{shader.Stage} shader linking failed: \n{StringHelper.String(libraryError.LocalizedDescription)}");
|
Logger.Warning?.Print(LogClass.Gpu, $"{shader.Stage} shader linking failed: \n{StringHelper.String(libraryError.LocalizedDescription)}");
|
||||||
_status = ProgramLinkStatus.Failure;
|
_status = ProgramLinkStatus.Failure;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue