mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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() {
|
constexpr bool any() {
|
||||||
for (size_t i = 0; i < Dwords; i++) {
|
for (size_t i = 0; i < Dwords; i++) {
|
||||||
if (m_dwords[i] != 0)
|
if (m_dwords[i] != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user