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:
parent
6e9725a124
commit
0ea510eb9b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user