[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
1 changed files with 5 additions and 0 deletions

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)