2024-01-22 20:14:46 +00:00
|
|
|
using Ryujinx.Graphics.Device;
|
2020-07-12 04:07:01 +01:00
|
|
|
using Ryujinx.Graphics.Vic.Image;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Vic
|
|
|
|
{
|
2022-12-05 13:47:39 +00:00
|
|
|
readonly struct ResourceManager
|
2020-07-12 04:07:01 +01:00
|
|
|
{
|
2024-01-22 20:14:46 +00:00
|
|
|
public DeviceMemoryManager MemoryManager { get; }
|
2020-07-12 04:07:01 +01:00
|
|
|
public BufferPool<Pixel> SurfacePool { get; }
|
|
|
|
public BufferPool<byte> BufferPool { get; }
|
|
|
|
|
2024-01-22 20:14:46 +00:00
|
|
|
public ResourceManager(DeviceMemoryManager mm, BufferPool<Pixel> surfacePool, BufferPool<byte> bufferPool)
|
2020-07-12 04:07:01 +01:00
|
|
|
{
|
2024-01-22 20:14:46 +00:00
|
|
|
MemoryManager = mm;
|
2020-07-12 04:07:01 +01:00
|
|
|
SurfacePool = surfacePool;
|
|
|
|
BufferPool = bufferPool;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|