From 17aa3c6d0f0427c551929d69c6fca358806d8fc0 Mon Sep 17 00:00:00 2001 From: Isaac Marovitz Date: Thu, 21 Mar 2024 11:35:01 -0400 Subject: [PATCH] Require Argument Buffers Tier 2 --- src/Ryujinx.Graphics.Metal/MetalRenderer.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs index 1a04f92e8..d1f321c2e 100644 --- a/src/Ryujinx.Graphics.Metal/MetalRenderer.cs +++ b/src/Ryujinx.Graphics.Metal/MetalRenderer.cs @@ -29,6 +29,12 @@ namespace Ryujinx.Graphics.Metal public MetalRenderer(Func metalLayer) { _device = MTLDevice.CreateSystemDefaultDevice(); + + if (_device.ArgumentBuffersSupport != MTLArgumentBuffersTier.Tier2) + { + throw new NotSupportedException("Metal backend requires Tier 2 Argument Buffer support."); + } + _queue = _device.NewCommandQueue(); _getMetalLayer = metalLayer; }