mirror of
https://github.com/Ryujinx-NX/Ryujinx.git
synced 2024-11-15 05:27:42 -07:00
Try again
This commit is contained in:
parent
361e1b0228
commit
689fdd95b1
@ -1,14 +1,20 @@
|
|||||||
using SharpMetal.QuartzCore;
|
using SharpMetal.QuartzCore;
|
||||||
using System.Runtime.Versioning;
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Ava.UI.Renderer
|
namespace Ryujinx.Ava.UI.Renderer
|
||||||
{
|
{
|
||||||
[SupportedOSPlatform("macos")]
|
|
||||||
public class EmbeddedWindowMetal : EmbeddedWindow
|
public class EmbeddedWindowMetal : EmbeddedWindow
|
||||||
{
|
{
|
||||||
public CAMetalLayer CreateSurface()
|
public CAMetalLayer CreateSurface()
|
||||||
{
|
{
|
||||||
return new CAMetalLayer(MetalLayer);
|
if (OperatingSystem.IsMacOS())
|
||||||
|
{
|
||||||
|
return new CAMetalLayer(MetalLayer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new NotSupportedException();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user