Only selectively compile Metal & fix some compilation issues

This commit is contained in:
Evan Husted 2025-01-18 10:52:32 -06:00
parent 2f93a0f706
commit beda3206e0
5 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,5 @@
using Avalonia;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Platform;
using Ryujinx.Ava.Utilities.Configuration;
using Ryujinx.Common.Configuration;
@ -28,7 +27,7 @@ namespace Ryujinx.Ava.UI.Renderer
protected nint WindowHandle { get; set; }
protected nint X11Display { get; set; }
protected nint NsView { get; set; }
protected nint MetalLayer { get; set; }
public nint MetalLayer { get; protected set; }
public delegate void UpdateBoundsCallbackDelegate(Rect rect);
private UpdateBoundsCallbackDelegate _updateBoundsCallback;

View file

@ -1,8 +1,10 @@
using SharpMetal.QuartzCore;
using System;
using System.Runtime.Versioning;
namespace Ryujinx.Ava.UI.Renderer
{
[SupportedOSPlatform("macos")]
public class EmbeddedWindowMetal : EmbeddedWindow
{
public CAMetalLayer CreateSurface()