mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 16:25:36 +01:00
e8d5fb89e4
The inequality operator is automatically generated by the compiler if `operator==` is defined.
18 lines
469 B
C++
18 lines
469 B
C++
// Copyright 2022 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "VideoCommon/GraphicsModSystem/Runtime/FBInfo.h"
|
|
|
|
#include "Common/Hash.h"
|
|
|
|
u32 FBInfo::CalculateHash() const
|
|
{
|
|
return Common::HashAdler32(reinterpret_cast<const u8*>(this), sizeof(FBInfo));
|
|
}
|
|
|
|
bool FBInfo::operator==(const FBInfo& other) const
|
|
{
|
|
return m_height == other.m_height && m_width == other.m_width &&
|
|
m_texture_format == other.m_texture_format;
|
|
}
|