summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWGfx.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-05-28 20:59:02 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2023-06-03 14:52:31 -0500
commit834f8f7b5cb9b5d9e437c7a3935bfdcc236c422a (patch)
tree429b751c40a96b44a920cc9f59afb3813320a1e0 /Source/Core/VideoBackends/Software/SWGfx.cpp
parent252d3f353aa74b06a1c67daa65eb60f786608a6a (diff)
VideoBackends: add support to allow rendering to multiple output textures
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWGfx.cpp8
1 files changed, 5 insertions, 3 deletions
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<AbstractStagingTexture> SWGfx::CreateStagingTexture(StagingTextu
return std::make_unique<SWStagingTexture>(type, config);
}
-std::unique_ptr<AbstractFramebuffer> SWGfx::CreateFramebuffer(AbstractTexture* color_attachment,
- AbstractTexture* depth_attachment)
+std::unique_ptr<AbstractFramebuffer>
+SWGfx::CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment,
+ std::vector<AbstractTexture*> additional_color_attachments)
{
return SWFramebuffer::Create(static_cast<SWTexture*>(color_attachment),
- static_cast<SWTexture*>(depth_attachment));
+ static_cast<SWTexture*>(depth_attachment),
+ std::move(additional_color_attachments));
}
void SWGfx::BindBackbuffer(const ClearColor& clear_color)