mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-16 01:36:57 +00:00
misc: chore: Fix object creation in Metal
This commit is contained in:
parent
e859bd5aa2
commit
d95f724d17
15 changed files with 28 additions and 28 deletions
|
|
@ -125,7 +125,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
public readonly MTLRenderCommandEncoder CreateRenderCommandEncoder()
|
||||
{
|
||||
// Initialise Pass & State
|
||||
using MTLRenderPassDescriptor renderPassDescriptor = new MTLRenderPassDescriptor();
|
||||
using MTLRenderPassDescriptor renderPassDescriptor = new();
|
||||
|
||||
for (int i = 0; i < Constants.MaxColorAttachments; i++)
|
||||
{
|
||||
|
|
@ -185,7 +185,7 @@ namespace Ryujinx.Graphics.Metal
|
|||
|
||||
public readonly MTLComputeCommandEncoder CreateComputeCommandEncoder()
|
||||
{
|
||||
using MTLComputePassDescriptor descriptor = new MTLComputePassDescriptor();
|
||||
using MTLComputePassDescriptor descriptor = new();
|
||||
MTLComputeCommandEncoder computeCommandEncoder = _pipeline.CommandBuffer.ComputeCommandEncoder(descriptor);
|
||||
|
||||
return computeCommandEncoder;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue