aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.OpenGL/Image
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/Image
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/Image')
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/IntermmediatePool.cs2
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/TextureBase.cs4
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs2
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs4
-rw-r--r--src/Ryujinx.Graphics.OpenGL/Image/TextureView.cs2
5 files changed, 5 insertions, 9 deletions
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/IntermmediatePool.cs b/src/Ryujinx.Graphics.OpenGL/Image/IntermmediatePool.cs
index 1a08f973..64ee73fb 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/IntermmediatePool.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/IntermmediatePool.cs
@@ -87,7 +87,7 @@ namespace Ryujinx.Graphics.OpenGL.Image
SwizzleComponent.Red,
SwizzleComponent.Green,
SwizzleComponent.Blue,
- SwizzleComponent.Alpha), 1f);
+ SwizzleComponent.Alpha));
}
public void Dispose()
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/TextureBase.cs b/src/Ryujinx.Graphics.OpenGL/Image/TextureBase.cs
index 2ab9dffb..070a36b5 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/TextureBase.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/TextureBase.cs
@@ -11,15 +11,13 @@ namespace Ryujinx.Graphics.OpenGL.Image
public int Width => Info.Width;
public int Height => Info.Height;
- public float ScaleFactor { get; }
public Target Target => Info.Target;
public Format Format => Info.Format;
- public TextureBase(TextureCreateInfo info, float scaleFactor = 1f)
+ public TextureBase(TextureCreateInfo info)
{
Info = info;
- ScaleFactor = scaleFactor;
Handle = GL.GenTexture();
}
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs b/src/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs
index bb1911e8..e33940cb 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/TextureCopy.cs
@@ -349,7 +349,7 @@ namespace Ryujinx.Graphics.OpenGL.Image
public TextureView BgraSwap(TextureView from)
{
- TextureView to = (TextureView)_renderer.CreateTexture(from.Info, from.ScaleFactor);
+ TextureView to = (TextureView)_renderer.CreateTexture(from.Info);
EnsurePbo(from);
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs b/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
index d714caf3..79c6cb68 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/TextureStorage.cs
@@ -8,7 +8,6 @@ namespace Ryujinx.Graphics.OpenGL.Image
{
public ITextureInfo Storage => this;
public int Handle { get; private set; }
- public float ScaleFactor { get; private set; }
public TextureCreateInfo Info { get; }
@@ -18,13 +17,12 @@ namespace Ryujinx.Graphics.OpenGL.Image
internal ITexture DefaultView { get; private set; }
- public TextureStorage(OpenGLRenderer renderer, TextureCreateInfo info, float scaleFactor)
+ public TextureStorage(OpenGLRenderer renderer, TextureCreateInfo info)
{
_renderer = renderer;
Info = info;
Handle = GL.GenTexture();
- ScaleFactor = scaleFactor;
CreateImmutableStorage();
}
diff --git a/src/Ryujinx.Graphics.OpenGL/Image/TextureView.cs b/src/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
index 21d8e449..f4b1e0da 100644
--- a/src/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
+++ b/src/Ryujinx.Graphics.OpenGL/Image/TextureView.cs
@@ -23,7 +23,7 @@ namespace Ryujinx.Graphics.OpenGL.Image
TextureStorage parent,
TextureCreateInfo info,
int firstLayer,
- int firstLevel) : base(info, parent.ScaleFactor)
+ int firstLevel) : base(info)
{
_renderer = renderer;
_parent = parent;