From f039149198657c1891e1c6462ed30c31ed4b8486 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 15 Feb 2019 11:59:50 +1000 Subject: Move most backend functionality to VideoCommon --- Source/Core/VideoCommon/AbstractFramebuffer.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/AbstractFramebuffer.h') diff --git a/Source/Core/VideoCommon/AbstractFramebuffer.h b/Source/Core/VideoCommon/AbstractFramebuffer.h index 9d4b2d29cd..33b243e3b3 100644 --- a/Source/Core/VideoCommon/AbstractFramebuffer.h +++ b/Source/Core/VideoCommon/AbstractFramebuffer.h @@ -18,13 +18,16 @@ class AbstractTexture; class AbstractFramebuffer { public: - AbstractFramebuffer(AbstractTextureFormat color_format, AbstractTextureFormat depth_format, + AbstractFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment, + AbstractTextureFormat color_format, AbstractTextureFormat depth_format, u32 width, u32 height, u32 layers, u32 samples); virtual ~AbstractFramebuffer(); static bool ValidateConfig(const AbstractTexture* color_attachment, const AbstractTexture* depth_attachment); + AbstractTexture* GetColorAttachment() const { return m_color_attachment; } + AbstractTexture* GetDepthAttachment() const { return m_depth_attachment; } AbstractTextureFormat GetColorFormat() const { return m_color_format; } AbstractTextureFormat GetDepthFormat() const { return m_depth_format; } bool HasColorBuffer() const { return m_color_format != AbstractTextureFormat::Undefined; } @@ -36,6 +39,8 @@ public: MathUtil::Rectangle GetRect() const; protected: + AbstractTexture* m_color_attachment; + AbstractTexture* m_depth_attachment; AbstractTextureFormat m_color_format; AbstractTextureFormat m_depth_format; u32 m_width; -- cgit v1.2.3