aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Renderer.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-04-25 10:02:18 -0300
committerGitHub <noreply@github.com>2020-04-25 23:02:18 +1000
commit3cb1fa0e853efc04cc183d3ee75ec1bbe2c845a4 (patch)
treecf19d371b99cffdbff03e2f20271927cb7b08bf8 /Ryujinx.Graphics.OpenGL/Renderer.cs
parenta065dc1626d2fa4cb5c7300a1aa8713ffb4f5896 (diff)
Implement texture buffers (#1152)
* Implement texture buffers * Throw NotSupportedException where appropriate
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Renderer.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Renderer.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Renderer.cs b/Ryujinx.Graphics.OpenGL/Renderer.cs
index 504a947b..3f718345 100644
--- a/Ryujinx.Graphics.OpenGL/Renderer.cs
+++ b/Ryujinx.Graphics.OpenGL/Renderer.cs
@@ -20,19 +20,14 @@ namespace Ryujinx.Graphics.OpenGL
internal TextureCopy TextureCopy { get; }
public string GpuVendor { get; private set; }
-
public string GpuRenderer { get; private set; }
-
public string GpuVersion { get; private set; }
public Renderer()
{
_pipeline = new Pipeline();
-
_counters = new Counters();
-
_window = new Window(this);
-
TextureCopy = new TextureCopy(this);
}
@@ -58,7 +53,7 @@ namespace Ryujinx.Graphics.OpenGL
public ITexture CreateTexture(TextureCreateInfo info)
{
- return new TextureStorage(this, info).CreateDefaultView();
+ return info.Target == Target.TextureBuffer ? new TextureBuffer(info) : new TextureStorage(this, info).CreateDefaultView();
}
public Capabilities GetCapabilities()