Avoid parsing descriptors for disabled shader stages

This commit is contained in:
Billy Laws 2022-09-17 13:12:28 +01:00
parent 3456fb39fa
commit 4652cc5a0a

View File

@ -222,6 +222,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
u32 bindingIndex{};
for (const auto &stage : shaderStages) {
if (!stage.module)
continue;
auto pushBindings{[&](vk::DescriptorType type, const auto &descs, u32 &count, bool individualDescWrites = false) {
descriptorInfo.writeDescCount += individualDescWrites ? descs.size() : ((descs.size() > 0) ? 1 : 0);