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