shader: remove redundant descriptor sorting and stale null check

This commit is contained in:
nmzik committed 2026-10-06 14:53:17 +04:00
1 parent afbb322b32
commit 5a491abbda
2 files changed
+5 -3

No files matched your search

@@ -402,8 +402,10 @@ bool MaterializeIndirectDescriptor(const ResourcePlan& p
mask &= mask - 1u;
}
} else return false;
std::ranges::sort(keys);
keys.erase(std::unique(keys.begin(), keys.end()), keys.end());
if (selector != nullptr) {
std::ranges::sort(keys);
keys.erase(std::unique(keys.begin(), keys.end()), keys.end());
}
}
const auto mapping_offset = snapshot.flattened_srt.size();