diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-31 18:13:47 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-02-09 18:36:20 +1300 |
| commit | 2cfc02a1169653566e277a7e23e69fd5eb628434 (patch) | |
| tree | aa02397ee668f752b08f45094cee88a37cb58520 /Source/Core/VideoCommon/FramebufferManager.h | |
| parent | 9b5397abdb643b5d40211e71f7a58bb3814c29c4 (diff) | |
Move m_prev_efb_format into FramebufferManager
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.h')
| -rw-r--r-- | Source/Core/VideoCommon/FramebufferManager.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.h b/Source/Core/VideoCommon/FramebufferManager.h index cc41c0ffba..087c5023aa 100644 --- a/Source/Core/VideoCommon/FramebufferManager.h +++ b/Source/Core/VideoCommon/FramebufferManager.h @@ -105,6 +105,8 @@ public: // Assumes no render pass is currently in progress. // Swaps EFB framebuffers, so re-bind afterwards. bool ReinterpretPixelData(EFBReinterpretType convtype); + PixelFormat GetPrevPixelFormat() const { return m_prev_efb_format; } + void StorePixelFormat(PixelFormat new_format) { m_prev_efb_format = new_format; } // Clears the EFB using shaders. void ClearEFB(const MathUtil::Rectangle<int>& rc, bool clear_color, bool clear_alpha, @@ -193,6 +195,7 @@ protected: void DoSaveState(PointerWrap& p); float m_efb_scale = 0.0f; + PixelFormat m_prev_efb_format; std::unique_ptr<AbstractTexture> m_efb_color_texture; std::unique_ptr<AbstractTexture> m_efb_convert_color_texture; |
