mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-05-06 15:37:42 +02:00
20 lines
432 B
C#
20 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();
|
|
}
|
|
}
|
|
}
|
|
}
|