2024-01-22 20:14:46 +00:00
|
|
|
using Ryujinx.Graphics.Device;
|
2020-07-12 03:07:01 +00:00
|
|
|
using Ryujinx.Graphics.Nvdec.Image;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Nvdec
|
|
|
|
{
|
2022-12-05 13:47:39 +00:00
|
|
|
readonly struct ResourceManager
|
2020-07-12 03:07:01 +00:00
|
|
|
{
|
2024-01-22 20:14:46 +00:00
|
|
|
public DeviceMemoryManager MemoryManager { get; }
|
2020-07-12 03:07:01 +00:00
|
|
|
public SurfaceCache Cache { get; }
|
|
|
|
|
2024-01-22 20:14:46 +00:00
|
|
|
public ResourceManager(DeviceMemoryManager mm, SurfaceCache cache)
|
2020-07-12 03:07:01 +00:00
|
|
|
{
|
2024-01-22 20:14:46 +00:00
|
|
|
MemoryManager = mm;
|
2020-07-12 03:07:01 +00:00
|
|
|
Cache = cache;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|