MmeShadowScratch.cs 423 B

123456789101112131415
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace Ryujinx.Graphics.Gpu.Engine
  4. {
  5. [StructLayout(LayoutKind.Sequential, Size = 1024)]
  6. struct MmeShadowScratch
  7. {
  8. #pragma warning disable CS0169
  9. private uint _e0;
  10. #pragma warning restore CS0169
  11. public ref uint this[int index] => ref ToSpan()[index];
  12. public Span<uint> ToSpan() => MemoryMarshal.CreateSpan(ref _e0, 256);
  13. }
  14. }