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

---
 .../Multithreading/Commands/CopyBufferCommand.cs   | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 src/Ryujinx.Graphics.GAL/Multithreading/Commands/CopyBufferCommand.cs

(limited to 'src/Ryujinx.Graphics.GAL/Multithreading/Commands/CopyBufferCommand.cs')

diff --git a/src/Ryujinx.Graphics.GAL/Multithreading/Commands/CopyBufferCommand.cs b/src/Ryujinx.Graphics.GAL/Multithreading/Commands/CopyBufferCommand.cs
new file mode 100644
index 00000000..43111bce
--- /dev/null
+++ b/src/Ryujinx.Graphics.GAL/Multithreading/Commands/CopyBufferCommand.cs
@@ -0,0 +1,26 @@
+namespace Ryujinx.Graphics.GAL.Multithreading.Commands
+{
+    struct CopyBufferCommand : IGALCommand, IGALCommand<CopyBufferCommand>
+    {
+        public CommandType CommandType => CommandType.CopyBuffer;
+        private BufferHandle _source;
+        private BufferHandle _destination;
+        private int _srcOffset;
+        private int _dstOffset;
+        private int _size;
+
+        public void Set(BufferHandle source, BufferHandle destination, int srcOffset, int dstOffset, int size)
+        {
+            _source = source;
+            _destination = destination;
+            _srcOffset = srcOffset;
+            _dstOffset = dstOffset;
+            _size = size;
+        }
+
+        public static void Run(ref CopyBufferCommand command, ThreadedRenderer threaded, IRenderer renderer)
+        {
+            renderer.Pipeline.CopyBuffer(threaded.Buffers.MapBuffer(command._source), threaded.Buffers.MapBuffer(command._destination), command._srcOffset, command._dstOffset, command._size);
+        }
+    }
+}
-- 
cgit v1.2.3-70-g09d2