aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2023-07-11 14:07:41 -0300
committerGitHub <noreply@github.com>2023-07-11 14:07:41 -0300
commit9c6071a645e72b56e42cf687f9c1a182be2673ac (patch)
treef5efb327ff38f69a7630745f39f06caef01211e6 /src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs
parentfa32ef92755a51a2567a1bcbb35fb34886b5f979 (diff)
Move support buffer update out of the backends (#5411)1.1.959
* Move support buffer update out of the backends * Fix render scale init and remove redundant state from SupportBufferUpdater * Stop passing texture scale to the backends * XML docs for SupportBufferUpdater
Diffstat (limited to 'src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs')
-rw-r--r--src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs b/src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs
index b4c567a8..1ad927ea 100644
--- a/src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs
+++ b/src/Ryujinx.Graphics.OpenGL/OpenGLRenderer.cs
@@ -95,7 +95,7 @@ namespace Ryujinx.Graphics.OpenGL
return new Sampler(info);
}
- public ITexture CreateTexture(TextureCreateInfo info, float scaleFactor)
+ public ITexture CreateTexture(TextureCreateInfo info)
{
if (info.Target == Target.TextureBuffer)
{
@@ -103,7 +103,7 @@ namespace Ryujinx.Graphics.OpenGL
}
else
{
- return ResourcePool.GetTextureOrNull(info, scaleFactor) ?? new TextureStorage(this, info, scaleFactor).CreateDefaultView();
+ return ResourcePool.GetTextureOrNull(info) ?? new TextureStorage(this, info).CreateDefaultView();
}
}
@@ -194,9 +194,9 @@ namespace Ryujinx.Graphics.OpenGL
ResourcePool.Tick();
}
- public ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler, bool hostReserved)
+ public ICounterEvent ReportCounter(CounterType type, EventHandler<ulong> resultHandler, float divisor, bool hostReserved)
{
- return _counters.QueueReport(type, resultHandler, _pipeline.DrawCount, hostReserved);
+ return _counters.QueueReport(type, resultHandler, divisor, _pipeline.DrawCount, hostReserved);
}
public void Initialize(GraphicsDebugLevel glLogLevel)
@@ -210,7 +210,6 @@ namespace Ryujinx.Graphics.OpenGL
GL.Arb.MaxShaderCompilerThreads(Math.Min(Environment.ProcessorCount, 8));
}
- _pipeline.Initialize(this);
_counters.Initialize(_pipeline);
// This is required to disable [0, 1] clamping for SNorm outputs on compatibility profiles.