[dxvk] Use existing bit mask iterator for descriptor set allocation

This commit is contained in:
Philip Rebohle 2022-08-16 15:24:16 +02:00
parent 084969135b
commit 9f9324c421
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 1 additions and 4 deletions

View File

@ -82,15 +82,12 @@ namespace dxvk {
VkDescriptorSet* sets) {
auto setMap = getSetMapCached(layout);
while (setMask) {
uint32_t setIndex = bit::tzcnt(setMask);
for (auto setIndex : bit::BitMask(setMask)) {
sets[setIndex] = allocSet(
setMap->sets[setIndex],
layout->getSetLayout(setIndex));
m_setsUsed += 1;
setMask &= setMask - 1;
}
}