aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-10-28 17:20:43 -0300
committerGitHub <noreply@github.com>2020-10-28 21:20:43 +0100
commit0031edae27ba6a7bdb08db51efd84c887a6bdabd (patch)
tree3377a2105380789a3c52a3d3e2c864bcde5a74ad /Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
parent9f13f957af9cf3691c22ff67b5dc28a588024b4d (diff)
Avoid sampler conflicts on bindless samplers with the same name (#1642)
Diffstat (limited to 'Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs')
-rw-r--r--Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
index 14ea7032..8e878b0d 100644
--- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
+++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/OperandManager.cs
@@ -247,7 +247,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl
{
AstOperand operand = texOp.GetSource(0) as AstOperand;
- suffix = "_cb" + operand.CbufSlot + "_" + operand.CbufOffset;
+ suffix = $"_{texOp.Type.ToGlslSamplerType()}_cb{operand.CbufSlot}_{operand.CbufOffset}";
}
else
{