From 834f8f7b5cb9b5d9e437c7a3935bfdcc236c422a Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 28 May 2023 20:59:02 -0500 Subject: VideoBackends: add support to allow rendering to multiple output textures --- 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 25b7aeebda..e4c3b0451c 100644 --- a/Source/Core/VideoCommon/AbstractFramebuffer.h +++ b/Source/Core/VideoCommon/AbstractFramebuffer.h @@ -3,6 +3,8 @@ #pragma once +#include + #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 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& 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 m_additional_color_attachments; u32 m_width; u32 m_height; u32 m_layers; -- cgit v1.2.3