mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-12 07:36:59 +00:00
19 lines
517 B
C#
19 lines
517 B
C#
using Ryujinx.Common.Helper;
|
|
using SharpMetal.QuartzCore;
|
|
using System;
|
|
|
|
namespace Ryujinx.Ava.UI.Renderer
|
|
{
|
|
public class EmbeddedWindowMetal : EmbeddedWindow
|
|
{
|
|
public CAMetalLayer CreateSurface()
|
|
{
|
|
if (OperatingSystem.IsMacOS() && RunningPlatform.IsArm)
|
|
{
|
|
return new CAMetalLayer(MetalLayer);
|
|
}
|
|
|
|
throw new NotSupportedException($"Cannot create a {nameof(CAMetalLayer)} without being on ARM Mac.");
|
|
}
|
|
}
|
|
}
|