BehaviourErrorInfoOutStatus.cs 945 B

123456789101112131415161718192021222324252627282930
  1. using Ryujinx.Common.Memory;
  2. using System;
  3. using System.Runtime.InteropServices;
  4. using static Ryujinx.Audio.Renderer.Common.BehaviourParameter;
  5. namespace Ryujinx.Audio.Renderer.Parameter
  6. {
  7. /// <summary>
  8. /// Output information for behaviour.
  9. /// </summary>
  10. /// <remarks>This is used to report errors to the user during <see cref="Server.AudioRenderSystem.Update(Memory{byte}, Memory{byte}, ReadOnlyMemory{byte})"/> processing.</remarks>
  11. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  12. public struct BehaviourErrorInfoOutStatus
  13. {
  14. /// <summary>
  15. /// The reported errors.
  16. /// </summary>
  17. public Array10<ErrorInfo> ErrorInfos;
  18. /// <summary>
  19. /// The amount of error that got reported.
  20. /// </summary>
  21. public uint ErrorInfosCount;
  22. /// <summary>
  23. /// Reserved/unused.
  24. /// </summary>
  25. private unsafe fixed uint _reserved[3];
  26. }
  27. }