summaryrefslogtreecommitdiff
path: root/src/video_core/swrasterizer.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-12-06 19:06:12 -0800
committerGravatar Yuri Kunde Schlesner2015-12-07 20:20:38 -0800
commit195fedccf07b909c95e5905c7154c595bb260fc7 (patch)
treeb36ecb555672b6994e4bd11812a605fe2726d172 /src/video_core/swrasterizer.cpp
parentVideoCore: Rename HWRasterizer methods to be less confusing (diff)
downloadyuzu-195fedccf07b909c95e5905c7154c595bb260fc7.tar.gz
yuzu-195fedccf07b909c95e5905c7154c595bb260fc7.tar.xz
yuzu-195fedccf07b909c95e5905c7154c595bb260fc7.zip
VideoCore: Unify interface to OpenGL and SW rasterizers
This removes explicit checks sprinkled all over the codebase to instead just have the SW rasterizer expose an implementation with no-ops for most operations.
Diffstat (limited to 'src/video_core/swrasterizer.cpp')
-rw-r--r--src/video_core/swrasterizer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer.cpp b/src/video_core/swrasterizer.cpp
new file mode 100644
index 000000000..03df15b01
--- /dev/null
+++ b/src/video_core/swrasterizer.cpp
@@ -0,0 +1,16 @@
1// Copyright 2015 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#include "video_core/clipper.h"
6#include "video_core/swrasterizer.h"
7
8namespace VideoCore {
9
10void SWRasterizer::AddTriangle(const Pica::Shader::OutputVertex& v0,
11 const Pica::Shader::OutputVertex& v1,
12 const Pica::Shader::OutputVertex& v2) {
13 Pica::Clipper::ProcessTriangle(v0, v1, v2);
14}
15
16}