Fix present

This commit is contained in:
Isaac Marovitz 2024-05-18 20:27:27 -04:00 committed by Isaac Marovitz
parent fbe275204b
commit 45b533b23b
4 changed files with 43 additions and 34 deletions

View file

@ -8,6 +8,8 @@ namespace Ryujinx.Graphics.Metal
[SupportedOSPlatform("macos")]
public struct EncoderState
{
public const int MaxColorAttachments = 8;
public MTLFunction? VertexFunction = null;
public MTLFunction? FragmentFunction = null;
@ -43,7 +45,7 @@ namespace Ryujinx.Graphics.Metal
// Changes to attachments take recreation!
public MTLTexture DepthStencil = default;
public MTLTexture[] RenderTargets = [];
public MTLTexture[] RenderTargets = new MTLTexture[MaxColorAttachments];
public MTLVertexDescriptor VertexDescriptor = new();
public EncoderState() { }