aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/IGpuAccessor.cs
diff options
context:
space:
mode:
authorriperiperi <rhy3756547@hotmail.com>2021-05-19 19:05:43 +0100
committerGitHub <noreply@github.com>2021-05-19 20:05:43 +0200
commit0129250c2e169c7386f7e2868cc055f8ec55c005 (patch)
treed63a3239dc405de892edee7829905bc5e6b7038c /Ryujinx.Graphics.Shader/IGpuAccessor.cs
parentc805542b29975b0d9bf3ea324526f62cfe4331bf (diff)
Pass CbufSlot when getting info from the texture descriptor (#2291)
* Pass CbufSlot when getting info from the texture descriptor Fixes some issues with bindless textures, when CbufSlot is not equal to the current TextureBufferIndex. Specifically fixes a random chance of full screen colour flickering in Super Mario Party. * Apply suggestions from code review Oops Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
Diffstat (limited to 'Ryujinx.Graphics.Shader/IGpuAccessor.cs')
-rw-r--r--Ryujinx.Graphics.Shader/IGpuAccessor.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Shader/IGpuAccessor.cs b/Ryujinx.Graphics.Shader/IGpuAccessor.cs
index fe034c57..1e05cdcd 100644
--- a/Ryujinx.Graphics.Shader/IGpuAccessor.cs
+++ b/Ryujinx.Graphics.Shader/IGpuAccessor.cs
@@ -44,12 +44,12 @@
return 0xffff;
}
- bool QueryIsTextureBuffer(int handle)
+ bool QueryIsTextureBuffer(int handle, int cbufSlot = -1)
{
return false;
}
- bool QueryIsTextureRectangle(int handle)
+ bool QueryIsTextureRectangle(int handle, int cbufSlot = -1)
{
return false;
}
@@ -74,7 +74,7 @@
return true;
}
- TextureFormat QueryTextureFormat(int handle)
+ TextureFormat QueryTextureFormat(int handle, int cbufSlot = -1)
{
return TextureFormat.R8G8B8A8Unorm;
}