From 764849b05ed75b9d00ddad5ebd73a96455555827 Mon Sep 17 00:00:00 2001 From: Gabriel A Date: Thu, 16 Nov 2023 22:43:52 -0300 Subject: [PATCH] Fix GLSL generation --- .../CodeGen/Glsl/Instructions/InstGenMemory.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenMemory.cs b/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenMemory.cs index ac4a7c1ab..f5691771e 100644 --- a/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenMemory.cs +++ b/src/Ryujinx.Graphics.Shader/CodeGen/Glsl/Instructions/InstGenMemory.cs @@ -710,12 +710,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions private static string GetSamplerName(ShaderProperties resourceDefinitions, AstTextureOperation texOp) { - return resourceDefinitions.Textures[SetBindingPairWithType.Unpack(texOp.Binding, texOp.Type)].Name; + return resourceDefinitions.Textures[SetBindingPairWithType.Unpack(texOp.Binding, SamplerType.None)].Name; } private static string GetImageName(ShaderProperties resourceDefinitions, AstTextureOperation texOp) { - return resourceDefinitions.Images[SetBindingPairWithType.Unpack(texOp.Binding, texOp.Type)].Name; + return resourceDefinitions.Images[SetBindingPairWithType.Unpack(texOp.Binding, SamplerType.None)].Name; } private static string GetMask(int index)