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.h | |
| 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.h')
| -rw-r--r-- | src/video_core/swrasterizer.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/video_core/swrasterizer.h b/src/video_core/swrasterizer.h new file mode 100644 index 000000000..e9a4e39c6 --- /dev/null +++ b/src/video_core/swrasterizer.h | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | // Copyright 2015 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "common/common_types.h" | ||
| 8 | |||
| 9 | #include "video_core/rasterizer_interface.h" | ||
| 10 | |||
| 11 | namespace VideoCore { | ||
| 12 | |||
| 13 | class SWRasterizer : public RasterizerInterface { | ||
| 14 | void InitObjects() override {} | ||
| 15 | void Reset() override {} | ||
| 16 | void AddTriangle(const Pica::Shader::OutputVertex& v0, | ||
| 17 | const Pica::Shader::OutputVertex& v1, | ||
| 18 | const Pica::Shader::OutputVertex& v2); | ||
| 19 | void DrawTriangles() override {} | ||
| 20 | void FlushFramebuffer() override {} | ||
| 21 | void NotifyPicaRegisterChanged(u32 id) override {} | ||
| 22 | void FlushRegion(PAddr addr, u32 size) override {} | ||
| 23 | void InvalidateRegion(PAddr addr, u32 size) override {} | ||
| 24 | }; | ||
| 25 | |||
| 26 | } | ||