mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-04 06:22:25 -07:00
dispose caches
This commit is contained in:
@@ -10,7 +10,7 @@ using System.Runtime.Versioning;
|
||||
namespace Ryujinx.Graphics.Metal
|
||||
{
|
||||
[SupportedOSPlatform("macos")]
|
||||
struct EncoderStateManager
|
||||
struct EncoderStateManager : IDisposable
|
||||
{
|
||||
private readonly Pipeline _pipeline;
|
||||
|
||||
@@ -34,6 +34,12 @@ namespace Ryujinx.Graphics.Metal
|
||||
_depthStencilCache = new(device);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_renderPipelineCache.Dispose();
|
||||
_depthStencilCache.Dispose();
|
||||
}
|
||||
|
||||
public void SaveState()
|
||||
{
|
||||
_backStates.Add(_currentState);
|
||||
|
Reference in New Issue
Block a user