From fd0329f2ebc095d72b42a1ef9dc37cd2886c4c49 Mon Sep 17 00:00:00 2001 From: riperiperi Date: Wed, 3 Jul 2024 13:46:54 +0100 Subject: [PATCH] Fix warnings --- src/Ryujinx.Graphics.Metal/BufferManager.cs | 1 + src/Ryujinx.Graphics.Metal/TextureCopy.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.Graphics.Metal/BufferManager.cs b/src/Ryujinx.Graphics.Metal/BufferManager.cs index 28b6b2e24..e1a005a41 100644 --- a/src/Ryujinx.Graphics.Metal/BufferManager.cs +++ b/src/Ryujinx.Graphics.Metal/BufferManager.cs @@ -8,6 +8,7 @@ using System.Runtime.Versioning; namespace Ryujinx.Graphics.Metal { + [SupportedOSPlatform("macos")] readonly struct ScopedTemporaryBuffer : IDisposable { private readonly BufferManager _bufferManager; diff --git a/src/Ryujinx.Graphics.Metal/TextureCopy.cs b/src/Ryujinx.Graphics.Metal/TextureCopy.cs index ac22734df..a2bec60ae 100644 --- a/src/Ryujinx.Graphics.Metal/TextureCopy.cs +++ b/src/Ryujinx.Graphics.Metal/TextureCopy.cs @@ -3,10 +3,11 @@ using Ryujinx.Common.Logging; using Ryujinx.Graphics.GAL; using SharpMetal.Metal; using System; -using System.Numerics; +using System.Runtime.Versioning; namespace Ryujinx.Graphics.Metal { + [SupportedOSPlatform("macos")] static class TextureCopy { public static void Copy(