Require Argument Buffers Tier 2

This commit is contained in:
Isaac Marovitz 2024-03-21 11:35:01 -04:00
parent 9ce7c5550c
commit 841e3bb3f9
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,12 @@ namespace Ryujinx.Graphics.Metal
public MetalRenderer(Func<CAMetalLayer> 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;
}