1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-01 16:24:12 +01:00

[util] Add clearAll helper to bitset

This commit is contained in:
Joshua Ashton 2020-01-11 04:12:43 +00:00 committed by Joshie
parent 6e9725a124
commit 0ea510eb9b

View File

@ -237,6 +237,11 @@ namespace dxvk::bit {
}
}
constexpr void clearAll() {
for (size_t i = 0; i < Dwords; i++)
m_dwords[i] = 0;
}
constexpr bool any() {
for (size_t i = 0; i < Dwords; i++) {
if (m_dwords[i] != 0)