diff options
Diffstat (limited to 'Ryujinx.Graphics/GpuResourceManager.cs')
-rw-r--r-- | Ryujinx.Graphics/GpuResourceManager.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx.Graphics/GpuResourceManager.cs b/Ryujinx.Graphics/GpuResourceManager.cs index 71390a83..c3d697c5 100644 --- a/Ryujinx.Graphics/GpuResourceManager.cs +++ b/Ryujinx.Graphics/GpuResourceManager.cs @@ -117,7 +117,7 @@ namespace Ryujinx.Graphics return false; } - private bool MemoryRegionModified(NvGpuVmm Vmm, long Position, long Size, NvGpuBufferType Type) + public bool MemoryRegionModified(NvGpuVmm Vmm, long Position, long Size, NvGpuBufferType Type) { HashSet<long> Uploaded = UploadedKeys[(int)Type]; @@ -136,5 +136,10 @@ namespace Ryujinx.Graphics UploadedKeys[Index].Clear(); } } + + public void ClearPbCache(NvGpuBufferType Type) + { + UploadedKeys[(int)Type].Clear(); + } } } |