Ryujinx-ryubing/src/Ryujinx/UI/Renderer/EmbeddedWindowMetal.cs
Isaac Marovitz 6685041545 Try again
2024-12-23 21:16:15 -06:00

21 lines
432 B
C#

using SharpMetal.QuartzCore;
using System;
namespace Ryujinx.Ava.UI.Renderer
{
public class EmbeddedWindowMetal : EmbeddedWindow
{
public CAMetalLayer CreateSurface()
{
if (OperatingSystem.IsMacOS())
{
return new CAMetalLayer(MetalLayer);
}
else
{
throw new NotSupportedException();
}
}
}
}