mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[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…
x
Reference in New Issue
Block a user