summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/NullGfx.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/Null/NullGfx.cpp
parent252d3f353aa74b06a1c67daa65eb60f786608a6a (diff)
VideoBackends: add support to allow rendering to multiple output textures
Diffstat (limited to 'Source/Core/VideoBackends/Null/NullGfx.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/NullGfx.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Null/NullGfx.cpp b/Source/Core/VideoBackends/Null/NullGfx.cpp
index 7449aae09c..72aea0ce50 100644
--- a/Source/Core/VideoBackends/Null/NullGfx.cpp
+++ b/Source/Core/VideoBackends/Null/NullGfx.cpp
@@ -77,11 +77,13 @@ std::unique_ptr<AbstractPipeline> NullGfx::CreatePipeline(const AbstractPipeline
return std::make_unique<NullPipeline>();
}
-std::unique_ptr<AbstractFramebuffer> NullGfx::CreateFramebuffer(AbstractTexture* color_attachment,
- AbstractTexture* depth_attachment)
+std::unique_ptr<AbstractFramebuffer>
+NullGfx::CreateFramebuffer(AbstractTexture* color_attachment, AbstractTexture* depth_attachment,
+ std::vector<AbstractTexture*> additional_color_attachments)
{
return NullFramebuffer::Create(static_cast<NullTexture*>(color_attachment),
- static_cast<NullTexture*>(depth_attachment));
+ static_cast<NullTexture*>(depth_attachment),
+ std::move(additional_color_attachments));
}
std::unique_ptr<NativeVertexFormat>