diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-02-09 19:59:16 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-09 19:59:16 +1300 |
| commit | ccf92a3e56764d6378c436a8040519a5bffc3372 (patch) | |
| tree | e2b330b225044e1901e77a6ed147cf21b9d7ac0e /Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h | |
| parent | 72b22ef0a54f841b1c52d49cf0e00d3b12c29ac7 (diff) | |
| parent | 5c1b3ac61d7e660a9d1c206dbd0e615d637d3272 (diff) | |
Merge pull request #11522 from phire/KillRendererWithFire
Kill Renderer (with phire)
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h index 1775e3b0e3..ed0063444a 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h @@ -13,12 +13,15 @@ #include "VideoCommon/GraphicsModSystem/Runtime/FBInfo.h" #include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModAction.h" #include "VideoCommon/TextureInfo.h" +#include "VideoCommon/VideoEvents.h" #include "VideoCommon/XFMemory.h" class GraphicsModGroupConfig; class GraphicsModManager { public: + bool Initialize(); + const std::vector<GraphicsModAction*>& GetProjectionActions(ProjectionType projection_type) const; const std::vector<GraphicsModAction*>& GetProjectionTextureActions(ProjectionType projection_type, @@ -32,9 +35,8 @@ public: void Load(const GraphicsModGroupConfig& config); - void EndOfFrame(); - private: + void EndOfFrame(); void Reset(); class DecoratedAction; @@ -51,4 +53,8 @@ private: std::unordered_map<FBInfo, std::vector<GraphicsModAction*>, FBInfoHasher> m_xfb_target_to_actions; std::unordered_set<std::string> m_groups; + + Common::EventHook m_end_of_frame_event; }; + +extern std::unique_ptr<GraphicsModManager> g_graphics_mod_manager; |
