diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-11-08 10:26:58 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-08 10:26:58 +1000 |
| commit | 5440be96e744fffcdc4bb5e030a202deef7a1e1d (patch) | |
| tree | 53af1e29641607cd19c9cfb426aec27b8dec4d44 /Source/Core/VideoCommon/RenderBase.h | |
| parent | 93d7b3d15962a3393cf2971e14c4acf54d90cecd (diff) | |
| parent | 33a6d265e51c2289192eef15ffeec830b98b2410 (diff) | |
Merge pull request #8378 from stenzek/quad-buffer-stereo
Various quad-buffered ("HDMI 3D") stereo fixes
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h index 16ce52aaa4..b323946c5a 100644 --- a/Source/Core/VideoCommon/RenderBase.h +++ b/Source/Core/VideoCommon/RenderBase.h @@ -199,9 +199,6 @@ public: void SaveScreenshot(std::string filename, bool wait_for_completion); void DrawDebugText(); - // ImGui initialization depends on being able to create textures and pipelines, so do it last. - bool InitializeImGui(); - virtual void ClearScreen(const MathUtil::Rectangle<int>& rc, bool colorEnable, bool alphaEnable, bool zEnable, u32 color, u32 z); virtual void ReinterpretPixelData(EFBReinterpretType convtype); @@ -243,6 +240,10 @@ public: virtual std::unique_ptr<VideoCommon::AsyncShaderCompiler> CreateAsyncShaderCompiler(); + // Returns true if a layer-expanding geometry shader should be used when rendering the user + // interface and final XFB. + bool UseGeometryShaderForUI() const; + // Returns a lock for the ImGui mutex, enabling data structures to be modified from outside. // Use with care, only non-drawing functions should be called from outside the video thread, // as the drawing is tied to a "frame". @@ -275,6 +276,12 @@ protected: void CheckFifoRecording(); void RecordVideoMemory(); + // ImGui initialization depends on being able to create textures and pipelines, so do it last. + bool InitializeImGui(); + + // Recompiles ImGui pipeline - call when stereo mode changes. + bool RecompileImGuiPipeline(); + // Sets up ImGui state for the next frame. // This function itself acquires the ImGui lock, so it should not be held. void BeginImGuiFrame(); |
