From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001
From: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
Date: Sat, 8 Apr 2023 01:22:00 +0200
Subject: Move solution and projects to src
---
src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs
(limited to 'src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs')
diff --git a/src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs b/src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs
new file mode 100644
index 00000000..44cd8213
--- /dev/null
+++ b/src/Ryujinx.Graphics.Gpu/Engine/MmeShadowScratch.cs
@@ -0,0 +1,18 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace Ryujinx.Graphics.Gpu.Engine
+{
+ ///
+ /// Represents temporary storage used by macros.
+ ///
+ [StructLayout(LayoutKind.Sequential, Size = 1024)]
+ struct MmeShadowScratch
+ {
+#pragma warning disable CS0169
+ private uint _e0;
+#pragma warning restore CS0169
+ public ref uint this[int index] => ref AsSpan()[index];
+ public Span AsSpan() => MemoryMarshal.CreateSpan(ref _e0, 256);
+ }
+}
--
cgit v1.2.3