Start Metal Backend

Revert build yml changes
This commit is contained in:
Isaac Marovitz
2024-08-31 22:42:56 +02:00
committed by Isaac Marovitz
parent 5dbba07e33
commit ebaf1d8258
24 changed files with 2576 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
using SPB.Windowing;
using SPB.Platform.Metal;
using System;
namespace Ryujinx.UI.Renderer
{
public class EmbeddedWindowMetal : EmbeddedWindow
{
public SimpleMetalWindow CreateSurface()
{
SimpleMetalWindow simpleMetalWindow;
if (OperatingSystem.IsMacOS())
{
simpleMetalWindow = new SimpleMetalWindow(new NativeHandle(NsView), new NativeHandle(MetalLayer));
}
else
{
throw new PlatformNotSupportedException();
}
return simpleMetalWindow;
}
}
}