WIP: Experimental: Metal backend #439

Closed
GreemDev wants to merge 374 commits from metal into master
Showing only changes of commit b8c60e993a - Show all commits

View File

@ -1,14 +1,20 @@
using SharpMetal.QuartzCore;
using System.Runtime.Versioning;
using System;
namespace Ryujinx.Ava.UI.Renderer
{
[SupportedOSPlatform("macos")]
public class EmbeddedWindowMetal : EmbeddedWindow
{
public CAMetalLayer CreateSurface()
{
return new CAMetalLayer(MetalLayer);
if (OperatingSystem.IsMacOS())
{
return new CAMetalLayer(MetalLayer);
}
else
{
throw new NotSupportedException();
}
}
}
}