aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-01-21 21:07:43 -0300
committerGitHub <noreply@github.com>2023-01-22 01:07:43 +0100
commit7fea26e97e74e7ec0a5fa27921aa40c31b2c1dd9 (patch)
tree6c9022221b0a0849126ee2f362f18ee27aa25626 /Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer
parent7b7f62c776361d83bdb0a4035b7ebdce832941be (diff)
Remove use of reflection on GAL multithreading (#4287)
* Introduce new IGALCommand<T> interface and use it * Remove use of reflection on GAL multithreading * Unmanaged constraint
Diffstat (limited to 'Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer')
-rw-r--r--Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferDisposeCommand.cs2
-rw-r--r--Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferGetDataCommand.cs2
-rw-r--r--Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferSetDataCommand.cs2
3 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferDisposeCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferDisposeCommand.cs
index 68167be0..5be42fff 100644
--- a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferDisposeCommand.cs
+++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferDisposeCommand.cs
@@ -1,6 +1,6 @@
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Buffer
{
- struct BufferDisposeCommand : IGALCommand
+ struct BufferDisposeCommand : IGALCommand, IGALCommand<BufferDisposeCommand>
{
public CommandType CommandType => CommandType.BufferDispose;
private BufferHandle _buffer;
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferGetDataCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferGetDataCommand.cs
index 786ed87c..d3a255e7 100644
--- a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferGetDataCommand.cs
+++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferGetDataCommand.cs
@@ -3,7 +3,7 @@ using System;
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Buffer
{
- struct BufferGetDataCommand : IGALCommand
+ struct BufferGetDataCommand : IGALCommand, IGALCommand<BufferGetDataCommand>
{
public CommandType CommandType => CommandType.BufferGetData;
private BufferHandle _buffer;
diff --git a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferSetDataCommand.cs b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferSetDataCommand.cs
index 6f39898e..dcb8c2f2 100644
--- a/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferSetDataCommand.cs
+++ b/Ryujinx.Graphics.GAL/Multithreading/Commands/Buffer/BufferSetDataCommand.cs
@@ -3,7 +3,7 @@ using System;
namespace Ryujinx.Graphics.GAL.Multithreading.Commands.Buffer
{
- struct BufferSetDataCommand : IGALCommand
+ struct BufferSetDataCommand : IGALCommand, IGALCommand<BufferSetDataCommand>
{
public CommandType CommandType => CommandType.BufferSetData;
private BufferHandle _buffer;