| 1 | // Copyright 2022 Dolphin Emulator Project |
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | |
| 4 | #include "VideoCommon/GraphicsModSystem/Runtime/FBInfo.h" |
| 5 | |
| 6 | #include "Common/Hash.h" |
| 7 | |
| 8 | u32 FBInfo::CalculateHash() const |
| 9 | { |
| 10 | return Common::HashAdler32(reinterpret_cast<const u8*>(this), sizeof(FBInfo)); |
| 11 | } |
| 12 | |
| 13 | bool FBInfo::operator==(const FBInfo& other) const |
| 14 | { |
| 15 | return m_height == other.m_height && m_width == other.m_width && |
| 16 | m_texture_format == other.m_texture_format; |
| 17 | } |