1
0
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:
Georg Lehmann 2021-08-13 18:49:08 +02:00 committed by Joshie
parent b13260c689
commit 789e19d2ac

View File

@ -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));
}