mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Move m_prev_efb_format into FramebufferManager
This commit is contained in:
parent
9b5397abdb
commit
2cfc02a116
6 changed files with 7 additions and 31 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue