Use Ryujinx Logger

This commit is contained in:
Isaac Marovitz 2023-07-28 16:39:14 -04:00 committed by Isaac Marovitz
parent f4aea9b7ec
commit 28da4248ae
2 changed files with 32 additions and 2 deletions

View file

@ -1,3 +1,4 @@
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
using SharpMetal.Foundation;
@ -35,8 +36,7 @@ namespace Ryujinx.Graphics.Metal
_renderEncoderState = new(_device.NewRenderPipelineState(renderPipelineDescriptor, ref error));
if (error != IntPtr.Zero)
{
// throw new Exception($"Failed to create render pipeline state! {StringHelp}");
throw new Exception($"Failed to create render pipeline state!");
Logger.Error?.PrintMsg(LogClass.Gpu, $"Failed to create Render Pipeline State: {StringHelper.String(error.LocalizedDescription)}");
}
_commandBuffer = _mtlCommandQueue.CommandBuffer();