Avoid sampler conflicts on bindless samplers with the same name (#1642)

This commit is contained in:
gdkchan 2020-10-28 17:20:43 -03:00 committed by GitHub
parent 9f13f957af
commit 0031edae27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 71 additions and 70 deletions

View file

@ -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
{