diff options
| author | 2015-12-06 19:06:12 -0800 | |
|---|---|---|
| committer | 2015-12-07 20:20:38 -0800 | |
| commit | 195fedccf07b909c95e5905c7154c595bb260fc7 (patch) | |
| tree | b36ecb555672b6994e4bd11812a605fe2726d172 /src/video_core/swrasterizer.cpp | |
| parent | VideoCore: Rename HWRasterizer methods to be less confusing (diff) | |
| download | yuzu-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.cpp | 16 |
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 | |||
| 8 | namespace VideoCore { | ||
| 9 | |||
| 10 | void 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 | } | ||