dispose caches
This commit is contained in:
parent
41fb433495
commit
c26df1f7a3
2 changed files with 17 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue