Only selectively compile Metal & fix some compilation issues

This commit is contained in:
Evan Husted 2025-01-18 10:52:32 -06:00
parent 2f93a0f706
commit beda3206e0
5 changed files with 7 additions and 8 deletions

View file

@ -12,8 +12,6 @@ using Ryujinx.Common.Logging;
using Ryujinx.Common.Utilities;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.GAL.Multithreading;
using Ryujinx.Graphics.Metal;
using Ryujinx.Graphics.OpenGL;
using Ryujinx.Graphics.Vulkan;
using Ryujinx.HLE;
using Ryujinx.Input;
@ -312,10 +310,10 @@ namespace Ryujinx.Headless
if (options.GraphicsBackend == GraphicsBackend.Metal && window is MetalWindow metalWindow && OperatingSystem.IsMacOS())
{
return new MetalRenderer(metalWindow.GetLayer);
return new Graphics.Metal.MetalRenderer(metalWindow.GetLayer);
}
return new OpenGLRenderer();
return new Graphics.OpenGL.OpenGLRenderer();
}
private static Switch InitializeEmulationContext(WindowBase window, IRenderer renderer, Options options)