aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/IRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.GAL/IRenderer.cs')
-rw-r--r--Ryujinx.Graphics.GAL/IRenderer.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.GAL/IRenderer.cs b/Ryujinx.Graphics.GAL/IRenderer.cs
index 1f2af559..2af7b5db 100644
--- a/Ryujinx.Graphics.GAL/IRenderer.cs
+++ b/Ryujinx.Graphics.GAL/IRenderer.cs
@@ -15,7 +15,12 @@ namespace Ryujinx.Graphics.GAL
void BackgroundContextAction(Action action, bool alwaysBackground = false);
- BufferHandle CreateBuffer(int size);
+ BufferHandle CreateBuffer(int size, BufferHandle storageHint);
+
+ BufferHandle CreateBuffer(int size)
+ {
+ return CreateBuffer(size, BufferHandle.Null);
+ }
IProgram CreateProgram(ShaderSource[] shaders, ShaderInfo info);
@@ -26,7 +31,7 @@ namespace Ryujinx.Graphics.GAL
void DeleteBuffer(BufferHandle buffer);
- ReadOnlySpan<byte> GetBufferData(BufferHandle buffer, int offset, int size);
+ PinnedSpan<byte> GetBufferData(BufferHandle buffer, int offset, int size);
Capabilities GetCapabilities();
ulong GetCurrentSync();