aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Memory/UnmapEventArgs.cs
blob: 83fb1fcee6624823860529dc3949afb6e5a3ef9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;

namespace Ryujinx.Graphics.Gpu.Memory
{
    public class UnmapEventArgs
    {
        public ulong Address { get; }
        public ulong Size { get; }
        public List<Action> RemapActions { get; private set; }

        public UnmapEventArgs(ulong address, ulong size)
        {
            Address = address;
            Size = size;
        }

        public void AddRemapAction(Action action)
        {
            RemapActions ??= new List<Action>();
            RemapActions.Add(action);
        }
    }
}