diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-06-09 13:40:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-09 13:40:21 +0200 |
| commit | 092773ad0cd31cb0f3d111254e4e0bdb24f2c795 (patch) | |
| tree | 817b91a21f01b8fdeacfdbc084f5aa6b9bad312b /Source/Core/VideoBackends/Software/SWGfx.cpp | |
| parent | e16791f2ca5b6db29a54bc3b189d168632e4974b (diff) | |
| parent | 8c3dc5b0d69bbe8a11b9cb0499f25f1164176f7c (diff) | |
Merge pull request #11859 from iwubcode/backend-multi-output
VideoBackends: add support to allow rendering to multiple output targets
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWGfx.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWGfx.cpp | 8 |
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) |
