diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-05-28 20:59:02 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-06-03 14:52:31 -0500 |
| commit | 834f8f7b5cb9b5d9e437c7a3935bfdcc236c422a (patch) | |
| tree | 429b751c40a96b44a920cc9f59afb3813320a1e0 /Source/Core/VideoCommon/AbstractFramebuffer.h | |
| parent | 252d3f353aa74b06a1c67daa65eb60f786608a6a (diff) | |
VideoBackends: add support to allow rendering to multiple output textures
Diffstat (limited to 'Source/Core/VideoCommon/AbstractFramebuffer.h')
| -rw-r--r-- | Source/Core/VideoCommon/AbstractFramebuffer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractFramebuffer.h b/Source/Core/VideoCommon/AbstractFramebuffer.h index 25b7aeebda..e4c3b0451c 100644 --- a/Source/Core/VideoCommon/AbstractFramebuffer.h +++ b/Source/Core/VideoCommon/AbstractFramebuffer.h @@ -3,6 +3,8 @@ #pragma once +#include <vector> + #include "Common/CommonTypes.h" #include "Common/MathUtil.h" #include "VideoCommon/TextureConfig.h" @@ -18,12 +20,14 @@ class AbstractFramebuffer { public: AbstractFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment, + std::vector<AbstractTexture*> additional_color_attachments, 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); + const AbstractTexture* depth_attachment, + const std::vector<AbstractTexture*>& additional_color_attachments); AbstractTexture* GetColorAttachment() const { return m_color_attachment; } AbstractTexture* GetDepthAttachment() const { return m_depth_attachment; } @@ -42,6 +46,7 @@ protected: AbstractTexture* m_depth_attachment; AbstractTextureFormat m_color_format; AbstractTextureFormat m_depth_format; + std::vector<AbstractTexture*> m_additional_color_attachments; u32 m_width; u32 m_height; u32 m_layers; |
