mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-12 01:37:02 +00:00
Avoid adding shader buffer descriptors for constant buffers that are not used (#3478)
* Avoid adding shader buffer descriptors for constant buffers that are not used * Shader cache version
This commit is contained in:
parent
5811d121df
commit
b34de74f81
6 changed files with 14 additions and 15 deletions
|
|
@ -360,12 +360,6 @@ namespace Ryujinx.Graphics.Shader.Translation
|
|||
UsedFeatures |= flags;
|
||||
}
|
||||
|
||||
public Operand CreateCbuf(int slot, int offset)
|
||||
{
|
||||
SetUsedConstantBuffer(slot);
|
||||
return OperandHelper.Cbuf(slot, offset);
|
||||
}
|
||||
|
||||
public void SetUsedConstantBuffer(int slot)
|
||||
{
|
||||
_usedConstantBuffers |= 1 << slot;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue