summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/Render.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2019-02-26 04:21:05 +0000
committerGitHub <noreply@github.com>2019-02-26 04:21:05 +0000
commit6ce7f44b8a0bb3b95d3f12ebffbef7a71a443fdd (patch)
tree98380ce3a3284c52597a6fba86589c847219ecd5 /Source/Core/VideoBackends/Null/Render.cpp
parent19673ce79af814ca3b77d7f8ea60458e564bfa51 (diff)
parentf039149198657c1891e1c6462ed30c31ed4b8486 (diff)
Merge pull request #7753 from stenzek/videocommon-all-the-things
Move a significant amount of video backend logic to VideoCommon
Diffstat (limited to 'Source/Core/VideoBackends/Null/Render.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/Render.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/Source/Core/VideoBackends/Null/Render.cpp b/Source/Core/VideoBackends/Null/Render.cpp
index d076e0f091..ca57a0bdeb 100644
--- a/Source/Core/VideoBackends/Null/Render.cpp
+++ b/Source/Core/VideoBackends/Null/Render.cpp
@@ -9,6 +9,7 @@
#include "VideoCommon/AbstractPipeline.h"
#include "VideoCommon/AbstractShader.h"
+#include "VideoCommon/NativeVertexFormat.h"
#include "VideoCommon/VideoConfig.h"
namespace Null
@@ -74,22 +75,16 @@ std::unique_ptr<AbstractPipeline> Renderer::CreatePipeline(const AbstractPipelin
return std::make_unique<NullPipeline>();
}
-std::unique_ptr<AbstractFramebuffer>
-Renderer::CreateFramebuffer(const AbstractTexture* color_attachment,
- const AbstractTexture* depth_attachment)
+std::unique_ptr<AbstractFramebuffer> Renderer::CreateFramebuffer(AbstractTexture* color_attachment,
+ AbstractTexture* depth_attachment)
{
- return NullFramebuffer::Create(static_cast<const NullTexture*>(color_attachment),
- static_cast<const NullTexture*>(depth_attachment));
+ return NullFramebuffer::Create(static_cast<NullTexture*>(color_attachment),
+ static_cast<NullTexture*>(depth_attachment));
}
-TargetRectangle Renderer::ConvertEFBRectangle(const EFBRectangle& rc)
+std::unique_ptr<NativeVertexFormat>
+Renderer::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl)
{
- TargetRectangle result;
- result.left = rc.left;
- result.top = rc.top;
- result.right = rc.right;
- result.bottom = rc.bottom;
- return result;
+ return std::make_unique<NativeVertexFormat>(vtx_decl);
}
-
} // namespace Null