From 518c260ad6cc60b883baaca2e3c604b994d5a2c7 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 6 Jun 2018 23:09:23 +0200 Subject: [PATCH] [util] Add == and != operator to Flags --- src/util/util_flags.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/util/util_flags.h b/src/util/util_flags.h index b73a0558..1d98522a 100644 --- a/src/util/util_flags.h +++ b/src/util/util_flags.h @@ -79,6 +79,14 @@ namespace dxvk { Flags operator ^ (const Flags& other) const { return Flags(m_bits ^ other.m_bits); } + + bool operator == (const Flags& other) const { + return m_bits == other.m_bits; + } + + bool operator != (const Flags& other) const { + return m_bits != other.m_bits; + } private: