don't end render pass when not neccessary
This commit is contained in:
parent
2abadbd649
commit
918e1c16b7
3 changed files with 97 additions and 142 deletions
|
@ -5,6 +5,19 @@ using System.Runtime.Versioning;
|
|||
|
||||
namespace Ryujinx.Graphics.Metal
|
||||
{
|
||||
// TODO: use this (unused right now)
|
||||
public struct DirtyFlags
|
||||
{
|
||||
public bool Pipeline = false;
|
||||
public bool DepthStencil = false;
|
||||
public bool CullMode = false;
|
||||
public bool Winding = false;
|
||||
public bool Viewport = false;
|
||||
public bool Scissor = false;
|
||||
|
||||
public DirtyFlags() { }
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("macos")]
|
||||
public struct EncoderState
|
||||
{
|
||||
|
@ -52,6 +65,9 @@ namespace Ryujinx.Graphics.Metal
|
|||
public VertexBufferDescriptor[] VertexBuffers = [];
|
||||
public VertexAttribDescriptor[] VertexAttribs = [];
|
||||
|
||||
// Dirty flags
|
||||
public DirtyFlags Dirty = new();
|
||||
|
||||
public EncoderState() { }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue