Frontend: Implement D3D<->GL renderer switching

This commit is contained in:
Connor McLaughlin
2019-11-17 19:37:10 +10:00
parent d1f7ad2512
commit 1f4dbd1060
2 changed files with 76 additions and 5 deletions

View File

@ -59,7 +59,9 @@ private:
#endif
bool CreateSDLWindow();
void DestroySDLWindow();
bool CreateDisplay();
void DestroyDisplay();
void CreateImGuiContext();
bool CreateAudioStream();
@ -69,6 +71,7 @@ private:
void SaveSettings();
void ResetPerformanceCounters();
void QueueSwitchGPURenderer();
void SwitchGPURenderer();
void UpdateFullscreen();
@ -114,6 +117,8 @@ private:
std::shared_ptr<DigitalController> m_controller;
u32 m_switch_gpu_renderer_event_id = 0;
float m_vps = 0.0f;
float m_fps = 0.0f;
float m_speed = 0.0f;