MemoryPoolInParameter.cs 853 B

123456789101112131415161718192021222324252627282930313233
  1. using Ryujinx.Audio.Renderer.Common;
  2. using System.Runtime.InteropServices;
  3. using CpuAddress = System.UInt64;
  4. namespace Ryujinx.Audio.Renderer.Parameter
  5. {
  6. /// <summary>
  7. /// Input information for a memory pool.
  8. /// </summary>
  9. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  10. public struct MemoryPoolInParameter
  11. {
  12. /// <summary>
  13. /// The CPU address used by the memory pool.
  14. /// </summary>
  15. public CpuAddress CpuAddress;
  16. /// <summary>
  17. /// The size used by the memory pool.
  18. /// </summary>
  19. public ulong Size;
  20. /// <summary>
  21. /// The target state the user wants.
  22. /// </summary>
  23. public MemoryPoolUserState State;
  24. /// <summary>
  25. /// Reserved/unused.
  26. /// </summary>
  27. private unsafe fixed uint _reserved[3];
  28. }
  29. }