BehaviourErrorInfoOutStatus.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright (c) 2019-2021 Ryujinx
  3. //
  4. // This program is free software: you can redistribute it and/or modify
  5. // it under the terms of the GNU Lesser General Public License as published by
  6. // the Free Software Foundation, either version 3 of the License, or
  7. // (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program. If not, see <https://www.gnu.org/licenses/>.
  16. //
  17. using Ryujinx.Common.Memory;
  18. using System;
  19. using System.Runtime.InteropServices;
  20. using static Ryujinx.Audio.Renderer.Common.BehaviourParameter;
  21. namespace Ryujinx.Audio.Renderer.Parameter
  22. {
  23. /// <summary>
  24. /// Output information for behaviour.
  25. /// </summary>
  26. /// <remarks>This is used to report errors to the user during <see cref="Server.AudioRenderSystem.Update(Memory{byte}, Memory{byte}, ReadOnlyMemory{byte})"/> processing.</remarks>
  27. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  28. public struct BehaviourErrorInfoOutStatus
  29. {
  30. /// <summary>
  31. /// The reported errors.
  32. /// </summary>
  33. public Array10<ErrorInfo> ErrorInfos;
  34. /// <summary>
  35. /// The amount of error that got reported.
  36. /// </summary>
  37. public uint ErrorInfosCount;
  38. /// <summary>
  39. /// Reserved/unused.
  40. /// </summary>
  41. private unsafe fixed uint _reserved[3];
  42. }
  43. }