2023-05-01 20:32:32 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Memory
|
2020-04-22 08:00:11 +02:00
|
|
|
|
{
|
|
|
|
|
public class UnmapEventArgs
|
|
|
|
|
{
|
|
|
|
|
public ulong Address { get; }
|
|
|
|
|
public ulong Size { get; }
|
2023-05-01 20:32:32 +02:00
|
|
|
|
public List<Action> RemapActions { get; private set; }
|
2020-04-22 08:00:11 +02:00
|
|
|
|
|
|
|
|
|
public UnmapEventArgs(ulong address, ulong size)
|
|
|
|
|
{
|
|
|
|
|
Address = address;
|
|
|
|
|
Size = size;
|
|
|
|
|
}
|
2023-05-01 20:32:32 +02:00
|
|
|
|
|
|
|
|
|
public void AddRemapAction(Action action)
|
|
|
|
|
{
|
|
|
|
|
RemapActions ??= new List<Action>();
|
|
|
|
|
RemapActions.Add(action);
|
|
|
|
|
}
|
2020-04-22 08:00:11 +02:00
|
|
|
|
}
|
|
|
|
|
}
|