Fix TryGetConstantBufferSlot

This commit is contained in:
Gabriel A 2023-10-29 14:30:27 -03:00
parent da95f4a195
commit ae0bb5040e

View file

@ -270,6 +270,11 @@ namespace Ryujinx.Graphics.Shader.Translation
{
for (slot = 0; slot < _cbSlotToBindingMap.Length; slot++)
{
if (_cbSlotToBindingMap[slot] < 0)
{
continue;
}
if (SetBindingPair.Pack(Constants.VkConstantBufferSetIndex, _cbSlotToBindingMap[slot]) == binding)
{
return true;