summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManager.h
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-01-31 15:44:38 +1300
committerScott Mansell <phiren@gmail.com>2023-02-09 18:36:20 +1300
commite0090024119184238032923987af1c8d7167b7b5 (patch)
tree4e7c029e13c3959b029c767ccb476451878afefe /Source/Core/VideoCommon/FramebufferManager.h
parentb753641dd44c927e52c4b478f0ace8bfdf17a2ff (diff)
Refactor ClearRegion
And fix bug where opengl was getting the wrong coordinates
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.h')
-rw-r--r--Source/Core/VideoCommon/FramebufferManager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManager.h b/Source/Core/VideoCommon/FramebufferManager.h
index 405ef1fc3a..c3871c8e15 100644
--- a/Source/Core/VideoCommon/FramebufferManager.h
+++ b/Source/Core/VideoCommon/FramebufferManager.h
@@ -95,6 +95,8 @@ public:
void ClearEFB(const MathUtil::Rectangle<int>& rc, bool clear_color, bool clear_alpha,
bool clear_z, u32 color, u32 z);
+ AbstractPipeline* GetClearPipeline(bool clear_color, bool clear_alpha, bool clear_z) const;
+
// Reads a framebuffer value back from the GPU. This may block if the cache is not current.
u32 PeekEFBColor(u32 x, u32 y);
float PeekEFBDepth(u32 x, u32 y);
@@ -206,7 +208,7 @@ protected:
// EFB clear pipelines
// Indexed by [color_write_enabled][alpha_write_enabled][depth_write_enabled]
std::array<std::array<std::array<std::unique_ptr<AbstractPipeline>, 2>, 2>, 2>
- m_efb_clear_pipelines;
+ m_clear_pipelines;
// EFB poke drawing setup
std::unique_ptr<NativeVertexFormat> m_poke_vertex_format;