Fix GLSL generation

This commit is contained in:
Gabriel A 2023-11-16 22:43:52 -03:00
parent 20a313ee15
commit 764849b05e

View file

@ -710,12 +710,12 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl.Instructions
private static string GetSamplerName(ShaderProperties resourceDefinitions, AstTextureOperation texOp) 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) 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) private static string GetMask(int index)