Fix bindless 1D textures having a buffer type on the shader (#3697)

* Fix bindless 1D textures having a buffer type on the shader

* Shader cache version bump
This commit is contained in:
gdkchan 2022-09-13 03:53:55 -03:00 committed by GitHub
parent 729ff5337c
commit 66f16f4392
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 66 additions and 10 deletions

View file

@ -180,6 +180,18 @@ namespace Ryujinx.Graphics.Shader.IntermediateRepresentation
_sources[index] = source;
}
public void InsertSource(int index, Operand source)
{
Operand[] newSources = new Operand[_sources.Length + 1];
Array.Copy(_sources, 0, newSources, 0, index);
Array.Copy(_sources, index, newSources, index + 1, _sources.Length - index);
newSources[index] = source;
_sources = newSources;
}
protected void RemoveSource(int index)
{
SetSource(index, null);