Revert "Only selectively compile Metal & fix some compilation issues"

This reverts commit beda3206e0.
This commit is contained in:
Evan Husted 2025-01-18 10:56:58 -06:00
parent beda3206e0
commit e6bad52945
5 changed files with 8 additions and 7 deletions

View file

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

View file

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