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

[dxvk] Use BitMask helper

This commit is contained in:
Georg Lehmann 2021-08-13 18:47:33 +02:00 committed by Joshie
parent ffc351f2f5
commit b037fc8882

View File

@ -185,8 +185,8 @@ namespace dxvk {
std::swap(code[m_o1IdxOffset], code[m_o1LocOffset]);
// Replace undefined input variables with zero
for (uint32_t u = info.undefinedInputs; u; u &= u - 1)
eliminateInput(spirvCode, bit::tzcnt(u));
for (uint32_t u : bit::BitMask(info.undefinedInputs))
eliminateInput(spirvCode, u);
return DxvkShaderModule(vkd, this, spirvCode);
}