GPU resource disposal
This commit is contained in:
parent
f7bcc884e4
commit
59fdaa744b
20 changed files with 195 additions and 46 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue