Debian Codegraph @

Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h

raw symbols SCIP
1 // Copyright 2022 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include "Common/CommonTypes.h"
7 #include "VideoCommon/TextureDecoder.h"
8
9 struct FBInfo
10 {
11 u32 m_height = 0;
12 u32 m_width = 0;
13 TextureFormat m_texture_format = TextureFormat::I4;
14 u32 CalculateHash() const;
15 bool operator==(const FBInfo& other) const;
16 };
17
18 struct FBInfoHasher
19 {
20 std::size_t operator()(const FBInfo& fb_info) const noexcept
21 {
22 return static_cast<std::size_t>(fb_info.CalculateHash());
23 }
24 };