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.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.GAL/IRenderer.cs b/Ryujinx.Graphics.GAL/IRenderer.cs
index 56a40172..7c0cb394 100644
--- a/Ryujinx.Graphics.GAL/IRenderer.cs
+++ b/Ryujinx.Graphics.GAL/IRenderer.cs
@@ -8,11 +8,13 @@ namespace Ryujinx.Graphics.GAL
{
event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
+ bool PreferThreading { get; }
+
IPipeline Pipeline { get; }
IWindow Window { get; }
- void BackgroundContextAction(Action action);
+ void BackgroundContextAction(Action action, bool alwaysBackground = false);
IShader CompileShader(ShaderStage stage, string code);
@@ -39,10 +41,15 @@ namespace Ryujinx.Graphics.GAL
void PreFrame();
- ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler);
+ ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler, bool hostReserved);
void ResetCounter(CounterType type);
+ void RunLoop(Action gpuLoop)
+ {
+ gpuLoop();
+ }
+
void WaitSync(ulong id);
void Initialize(GraphicsDebugLevel logLevel);