mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Avoid parsing descriptors for disabled shader stages
This commit is contained in:
@ -222,6 +222,9 @@ namespace skyline::gpu::interconnect::maxwell3d {
|
|||||||
u32 bindingIndex{};
|
u32 bindingIndex{};
|
||||||
|
|
||||||
for (const auto &stage : shaderStages) {
|
for (const auto &stage : shaderStages) {
|
||||||
|
if (!stage.module)
|
||||||
|
continue;
|
||||||
|
|
||||||
auto pushBindings{[&](vk::DescriptorType type, const auto &descs, u32 &count, bool individualDescWrites = false) {
|
auto pushBindings{[&](vk::DescriptorType type, const auto &descs, u32 &count, bool individualDescWrites = false) {
|
||||||
descriptorInfo.writeDescCount += individualDescWrites ? descs.size() : ((descs.size() > 0) ? 1 : 0);
|
descriptorInfo.writeDescCount += individualDescWrites ? descs.size() : ((descs.size() > 0) ? 1 : 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user