1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[d3d11] Use BitMask helper

This commit is contained in:
Georg Lehmann 2021-08-13 18:48:40 +02:00 committed by Joshie
parent 6103e3c800
commit b13260c689

View File

@ -12,11 +12,8 @@ namespace dxvk {
UINT CompactSparseList(T* pData, UINT Mask) {
uint32_t count = 0;
while (Mask != 0) {
uint32_t id = bit::tzcnt(Mask);
for (uint32_t id : bit::BitMask(Mask))
pData[count++] = pData[id];
Mask &= Mask - 1;
}
return count;
}