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:
parent
6103e3c800
commit
b13260c689
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user