shader: remove redundant descriptor sorting and stale null check

This commit is contained in:
nmzik
2026-10-06 05:06:54 +04:00
parent afbb322b32
commit 5a491abbda
2 changed files with 5 additions and 3 deletions
@@ -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();