mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-23 13:07:10 +02:00
Only selectively compile Metal & fix some compilation issues
This commit is contained in:
parent
2f93a0f706
commit
beda3206e0
5 changed files with 7 additions and 8 deletions
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue