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/VideoBackends/Software/SWGfx.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp') diff --git a/Source/Core/VideoBackends/Software/SWGfx.cpp b/Source/Core/VideoBackends/Software/SWGfx.cpp index 5837e19bf8..78d2d14d63 100644 --- a/Source/Core/VideoBackends/Software/SWGfx.cpp +++ b/Source/Core/VideoBackends/Software/SWGfx.cpp @@ -44,11 +44,13 @@ std::unique_ptr SWGfx::CreateStagingTexture(StagingTextu return std::make_unique(type, config); } -std::unique_ptr SWGfx::CreateFramebuffer(AbstractTexture* color_attachment, - AbstractTexture* depth_attachment) +std::unique_ptr +SWGfx::CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment, + std::vector additional_color_attachments) { return SWFramebuffer::Create(static_cast(color_attachment), - static_cast(depth_attachment)); + static_cast(depth_attachment), + std::move(additional_color_attachments)); } void SWGfx::BindBackbuffer(const ClearColor& clear_color) -- cgit v1.2.3