mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-08-12 05:05:26 +02:00
GPU resource disposal
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
/// <summary>
|
||||
/// Represents a cached GPU texture.
|
||||
/// </summary>
|
||||
class Texture : IRange<Texture>
|
||||
class Texture : IRange<Texture>, IDisposable
|
||||
{
|
||||
private GpuContext _context;
|
||||
|
||||
@@ -1011,5 +1011,13 @@ namespace Ryujinx.Graphics.Gpu.Image
|
||||
_arrayViewTexture?.Dispose();
|
||||
_arrayViewTexture = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs texture disposal, deleting the texture.
|
||||
/// </summary>
|
||||
public void Dispose()
|
||||
{
|
||||
DisposeTextures();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user