mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 02:52:10 +01:00
[dxbc] Use BitMask helper
This commit is contained in:
parent
b13260c689
commit
789e19d2ac
@ -211,9 +211,7 @@ namespace dxvk {
|
||||
for (size_t i = 0; i < m_xfbVars.size(); i++)
|
||||
streamMask |= 1u << m_xfbVars[i].streamId;
|
||||
|
||||
for (uint32_t mask = streamMask; mask != 0; mask &= mask - 1) {
|
||||
const uint32_t streamId = bit::tzcnt(mask);
|
||||
|
||||
for (uint32_t streamId : bit::BitMask(streamMask)) {
|
||||
emitXfbOutputSetup(streamId, true);
|
||||
m_module.opEmitVertex(m_module.constu32(streamId));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user