Add basic software GPU renderer

This commit is contained in:
Connor McLaughlin
2019-10-26 12:57:35 +10:00
parent 9b56499afa
commit 540e942a46
10 changed files with 613 additions and 6 deletions

View File

@ -63,6 +63,9 @@ public:
// gpu_hw_opengl.cpp
static std::unique_ptr<GPU> CreateHardwareOpenGLRenderer();
// gpu_sw.cpp
static std::unique_ptr<GPU> CreateSoftwareRenderer();
protected:
// Helper/format conversion functions.
static constexpr u8 Convert5To8(u8 x5) { return (x5 << 3) | (x5 & 7); }