mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-19 07:12:31 +00:00
Require Argument Buffers Tier 2
This commit is contained in:
parent
5a320cca19
commit
17aa3c6d0f
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,12 @@ namespace Ryujinx.Graphics.Metal
|
||||||
public MetalRenderer(Func<CAMetalLayer> metalLayer)
|
public MetalRenderer(Func<CAMetalLayer> metalLayer)
|
||||||
{
|
{
|
||||||
_device = MTLDevice.CreateSystemDefaultDevice();
|
_device = MTLDevice.CreateSystemDefaultDevice();
|
||||||
|
|
||||||
|
if (_device.ArgumentBuffersSupport != MTLArgumentBuffersTier.Tier2)
|
||||||
|
{
|
||||||
|
throw new NotSupportedException("Metal backend requires Tier 2 Argument Buffer support.");
|
||||||
|
}
|
||||||
|
|
||||||
_queue = _device.NewCommandQueue();
|
_queue = _device.NewCommandQueue();
|
||||||
_getMetalLayer = metalLayer;
|
_getMetalLayer = metalLayer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue