GPU/HW: Implement automatic resolution scale from window size

This commit is contained in:
Connor McLaughlin
2020-08-03 03:06:03 +10:00
parent 94777a15cd
commit 9b7512f7b8
6 changed files with 51 additions and 13 deletions

View File

@ -154,12 +154,15 @@ public:
/// Returns true if a raster scanline or command execution is pending.
bool IsCommandCompletionPending() const;
// Synchronizes the CRTC, updating the hblank timer.
/// Synchronizes the CRTC, updating the hblank timer.
void SynchronizeCRTC();
// Recompile shaders/recreate framebuffers when needed.
/// Recompile shaders/recreate framebuffers when needed.
virtual void UpdateSettings();
/// Updates the resolution scale when it's set to automatic.
virtual void UpdateResolutionScale();
// gpu_hw_d3d11.cpp
static std::unique_ptr<GPU> CreateHardwareD3D11Renderer();