mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-10 17:14:25 +00:00
misc: chore: More descriptive error for trying to create a Metal EmbeddedWindow on non-ARM Mac
This commit is contained in:
parent
2ab806f759
commit
cc3b95eee1
@ -1,3 +1,4 @@
|
|||||||
|
using Ryujinx.Common.Helper;
|
||||||
using SharpMetal.QuartzCore;
|
using SharpMetal.QuartzCore;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
@ -7,14 +8,12 @@ namespace Ryujinx.Ava.UI.Renderer
|
|||||||
{
|
{
|
||||||
public CAMetalLayer CreateSurface()
|
public CAMetalLayer CreateSurface()
|
||||||
{
|
{
|
||||||
if (OperatingSystem.IsMacOS())
|
if (OperatingSystem.IsMacOS() && RunningPlatform.IsArm)
|
||||||
{
|
{
|
||||||
return new CAMetalLayer(MetalLayer);
|
return new CAMetalLayer(MetalLayer);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
throw new NotSupportedException($"Cannot create a {nameof(CAMetalLayer)} without being on ARM Mac.");
|
||||||
throw new NotSupportedException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user