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