Files
Ryujinx-greemdev/src/Ryujinx/UI/Renderer/EmbeddedWindowMetal.cs
Isaac Marovitz ebaf1d8258 Start Metal Backend
Revert build yml changes
2024-09-28 19:03:01 -04:00

25 lines
609 B
C#

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;
}
}
}