aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL/Pipeline.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/Pipeline.cs
parenta065dc1626d2fa4cb5c7300a1aa8713ffb4f5896 (diff)
Implement texture buffers (#1152)
* Implement texture buffers * Throw NotSupportedException where appropriate
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/Pipeline.cs')
-rw-r--r--Ryujinx.Graphics.OpenGL/Pipeline.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Ryujinx.Graphics.OpenGL/Pipeline.cs b/Ryujinx.Graphics.OpenGL/Pipeline.cs
index eec2b643..e313595d 100644
--- a/Ryujinx.Graphics.OpenGL/Pipeline.cs
+++ b/Ryujinx.Graphics.OpenGL/Pipeline.cs
@@ -26,7 +26,7 @@ namespace Ryujinx.Graphics.OpenGL
private bool _depthTest;
private bool _hasDepthBuffer;
- private TextureView _unit0Texture;
+ private TextureBase _unit0Texture;
private ClipOrigin _clipOrigin;
private ClipDepthMode _clipDepthMode;
@@ -616,13 +616,13 @@ namespace Ryujinx.Graphics.OpenGL
if (unit != -1 && texture != null)
{
- TextureView view = (TextureView)texture;
+ TextureBase texBase = (TextureBase)texture;
- FormatInfo formatInfo = FormatTable.GetFormatInfo(view.Format);
+ FormatInfo formatInfo = FormatTable.GetFormatInfo(texBase.Format);
SizedInternalFormat format = (SizedInternalFormat)formatInfo.PixelInternalFormat;
- GL.BindImageTexture(unit, view.Handle, 0, true, 0, TextureAccess.ReadWrite, format);
+ GL.BindImageTexture(unit, texBase.Handle, 0, true, 0, TextureAccess.ReadWrite, format);
}
}
@@ -801,11 +801,11 @@ namespace Ryujinx.Graphics.OpenGL
{
if (unit == 0)
{
- _unit0Texture = ((TextureView)texture);
+ _unit0Texture = (TextureBase)texture;
}
else
{
- ((TextureView)texture).Bind(unit);
+ ((TextureBase)texture).Bind(unit);
}
}
}