mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-23 20:41:50 +01:00
Avoid parsing descriptors for disabled shader stages
This commit is contained in:
parent
3456fb39fa
commit
4652cc5a0a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user