SPIR-V: Use correct binding number on storage buffers array

This commit is contained in:
gdk 2022-02-14 17:09:00 -03:00 committed by riperiperi
parent e1d73cc560
commit 301ddec36f

View file

@ -166,7 +166,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
context.Name(sbVariable, $"{GetStagePrefix(context.Config.Stage)}_s");
context.Decorate(sbVariable, Decoration.DescriptorSet, (LiteralInteger)setIndex);
context.Decorate(sbVariable, Decoration.Binding, (LiteralInteger)descriptors[0].Binding);
context.Decorate(sbVariable, Decoration.Binding, (LiteralInteger)context.Config.FirstStorageBufferBinding);
context.AddGlobalVariable(sbVariable);
context.StorageBuffersArray = sbVariable;