WIP: WIP Changelog #527

Closed
GreemDev wants to merge 61 commits from release into feature/ava/amoled-theme
Showing only changes of commit 9190796c62 - Show all commits

View File

@ -183,6 +183,16 @@ namespace Ryujinx.Graphics.Vulkan
}
}
//Prevent the sum of descriptors from exceeding MaxPushDescriptors
int totalDescriptors = 0;
foreach (ResourceDescriptor desc in layout.Sets.First().Descriptors)
{
if (!reserved.Contains(desc.Binding))
totalDescriptors += desc.Count;
}
if (totalDescriptors > gd.Capabilities.MaxPushDescriptors)
return false;
return true;
}