UnmapEventArgs.cs 566 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Ryujinx.Graphics.Gpu.Memory
  4. {
  5. public class UnmapEventArgs
  6. {
  7. public ulong Address { get; }
  8. public ulong Size { get; }
  9. public List<Action> RemapActions { get; private set; }
  10. public UnmapEventArgs(ulong address, ulong size)
  11. {
  12. Address = address;
  13. Size = size;
  14. }
  15. public void AddRemapAction(Action action)
  16. {
  17. RemapActions ??= new List<Action>();
  18. RemapActions.Add(action);
  19. }
  20. }
  21. }