From 00fce5a51d00173100bea4452436b1868e74428c Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Wed, 2 Aug 2023 21:53:49 -0400 Subject: [PATCH] Undertale boots --- src/Ryujinx.Graphics.Metal/MetalRenderer.cs | 4 ++-- src/Ryujinx.Graphics.Metal/Program.cs | 22 +++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/Ryujinx.Graphics.Metal/Program.cs diff --git a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs index 434a73747..09960f9ab 100644 --- a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs +++ b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs @@ -86,8 +86,8 @@ namespace Ryujinx.Graphics.Metal public IProgram CreateProgram(ShaderSource[] shaders, ShaderInfo info) { - var library = _device.NewDefaultLibrary(); - throw new NotImplementedException(); + Logger.Warning?.Print(LogClass.Gpu, "Not Implemented!"); + return new Program(); } public ISampler CreateSampler(SamplerCreateInfo info) diff --git a/src/Ryujinx.Graphics.Metal/Program.cs b/src/Ryujinx.Graphics.Metal/Program.cs new file mode 100644 index 000000000..add16462f --- /dev/null +++ b/src/Ryujinx.Graphics.Metal/Program.cs @@ -0,0 +1,22 @@ +using Ryujinx.Graphics.GAL; + +namespace Ryujinx.Graphics.Metal +{ + public class Program : IProgram + { + public void Dispose() + { + return; + } + + public ProgramLinkStatus CheckProgramLink(bool blocking) + { + return ProgramLinkStatus.Failure; + } + + public byte[] GetBinary() + { + return new byte[] {}; + } + } +}