FIx build

This commit is contained in:
Isaac Marovitz
2024-03-18 14:48:54 -04:00
committed by Evan Husted
parent 3c562d8906
commit 76bafe75f4
4 changed files with 73 additions and 44 deletions

View File

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