EffectResultState.cs 835 B

1234567891011121314151617181920212223242526
  1. using Ryujinx.Common.Utilities;
  2. using System;
  3. using System.Runtime.InteropServices;
  4. namespace Ryujinx.Audio.Renderer.Parameter
  5. {
  6. /// <summary>
  7. /// Effect result state (added in REV9).
  8. /// </summary>
  9. [StructLayout(LayoutKind.Sequential, Pack = 1)]
  10. public struct EffectResultState
  11. {
  12. /// <summary>
  13. /// Specific data storage.
  14. /// </summary>
  15. private SpecificDataStruct _specificDataStart;
  16. [StructLayout(LayoutKind.Sequential, Size = 0x80, Pack = 1)]
  17. private struct SpecificDataStruct { }
  18. /// <summary>
  19. /// Specific data changing depending of the type of effect. See also the <see cref="Effect"/> namespace.
  20. /// </summary>
  21. public Span<byte> SpecificData => SpanHelpers.AsSpan<SpecificDataStruct, byte>(ref _specificDataStart);
  22. }
  23. }