2024-01-22 21:14:46 +01:00
|
|
|
using Ryujinx.Graphics.Device;
|
2020-07-12 05:07:01 +02:00
|
|
|
using Ryujinx.Graphics.Vic.Image;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Vic
|
|
|
|
{
|
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 BufferPool<Pixel> SurfacePool { get; }
|
|
|
|
public BufferPool<byte> BufferPool { get; }
|
|
|
|
|
2024-01-22 21:14:46 +01:00
|
|
|
public ResourceManager(DeviceMemoryManager mm, BufferPool<Pixel> surfacePool, BufferPool<byte> bufferPool)
|
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
|
|
|
SurfacePool = surfacePool;
|
|
|
|
BufferPool = bufferPool;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|