mirror of https://github.com/doitsujin/dxvk
[dxvk] Use existing bit mask iterator for descriptor set allocation
This commit is contained in:
parent
084969135b
commit
9f9324c421
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue