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