mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: add logic to handle a GraphicsMod while Dolphin is running
This commit is contained in:
25
Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h
Normal file
25
Source/Core/VideoCommon/GraphicsModSystem/Runtime/FBInfo.h
Normal file
@ -0,0 +1,25 @@
|
||||
// Copyright 2022 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "VideoCommon/TextureDecoder.h"
|
||||
|
||||
struct FBInfo
|
||||
{
|
||||
u32 m_height = 0;
|
||||
u32 m_width = 0;
|
||||
TextureFormat m_texture_format = TextureFormat::I4;
|
||||
u32 CalculateHash() const;
|
||||
bool operator==(const FBInfo& other) const;
|
||||
bool operator!=(const FBInfo& other) const;
|
||||
};
|
||||
|
||||
struct FBInfoHasher
|
||||
{
|
||||
std::size_t operator()(const FBInfo& fb_info) const noexcept
|
||||
{
|
||||
return static_cast<std::size_t>(fb_info.CalculateHash());
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user