aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/IBuffer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL/IBuffer.cs')
-rw-r--r--Ryujinx.Graphics.GAL/IBuffer.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.GAL/IBuffer.cs b/Ryujinx.Graphics.GAL/IBuffer.cs
new file mode 100644
index 00000000..000efd67
--- /dev/null
+++ b/Ryujinx.Graphics.GAL/IBuffer.cs
@@ -0,0 +1,15 @@
+using System;
+
+namespace Ryujinx.Graphics.GAL
+{
+ public interface IBuffer : IDisposable
+ {
+ void CopyTo(IBuffer destination, int srcOffset, int dstOffset, int size);
+
+ byte[] GetData(int offset, int size);
+
+ void SetData(Span<byte> data);
+
+ void SetData(int offset, Span<byte> data);
+ }
+} \ No newline at end of file