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.
This commit is contained in:
parent
03835d04f4
commit
195fedccf0
16 changed files with 115 additions and 77 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "common/common_types.h"
|
||||
|
||||
#include "video_core/hwrasterizer_base.h"
|
||||
#include "video_core/rasterizer_interface.h"
|
||||
|
||||
class EmuWindow;
|
||||
|
||||
|
@ -54,10 +54,14 @@ public:
|
|||
return m_current_frame;
|
||||
}
|
||||
|
||||
std::unique_ptr<HWRasterizer> hw_rasterizer;
|
||||
void RefreshRasterizerSetting();
|
||||
|
||||
std::unique_ptr<VideoCore::RasterizerInterface> rasterizer;
|
||||
|
||||
protected:
|
||||
f32 m_current_fps; ///< Current framerate, should be set by the renderer
|
||||
int m_current_frame; ///< Current frame, should be set by the renderer
|
||||
|
||||
private:
|
||||
bool opengl_rasterizer_active = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue