summaryrefslogtreecommitdiff
path: root/src/video_core/renderer_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_base.h')
-rw-r--r--src/video_core/renderer_base.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index 51dde8eb5..320ee8d30 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -37,15 +37,11 @@ public:
37 std::unique_ptr<Core::Frontend::GraphicsContext> context); 37 std::unique_ptr<Core::Frontend::GraphicsContext> context);
38 virtual ~RendererBase(); 38 virtual ~RendererBase();
39 39
40 /// Initialize the renderer
41 [[nodiscard]] virtual bool Init() = 0;
42
43 /// Shutdown the renderer
44 virtual void ShutDown() = 0;
45
46 /// Finalize rendering the guest frame and draw into the presentation texture 40 /// Finalize rendering the guest frame and draw into the presentation texture
47 virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0; 41 virtual void SwapBuffers(const Tegra::FramebufferConfig* framebuffer) = 0;
48 42
43 [[nodiscard]] virtual RasterizerInterface* ReadRasterizer() = 0;
44
49 // Getter/setter functions: 45 // Getter/setter functions:
50 // ------------------------ 46 // ------------------------
51 47
@@ -57,14 +53,6 @@ public:
57 return m_current_frame; 53 return m_current_frame;
58 } 54 }
59 55
60 [[nodiscard]] RasterizerInterface& Rasterizer() {
61 return *rasterizer;
62 }
63
64 [[nodiscard]] const RasterizerInterface& Rasterizer() const {
65 return *rasterizer;
66 }
67
68 [[nodiscard]] Core::Frontend::GraphicsContext& Context() { 56 [[nodiscard]] Core::Frontend::GraphicsContext& Context() {
69 return *context; 57 return *context;
70 } 58 }
@@ -98,7 +86,6 @@ public:
98 86
99protected: 87protected:
100 Core::Frontend::EmuWindow& render_window; ///< Reference to the render window handle. 88 Core::Frontend::EmuWindow& render_window; ///< Reference to the render window handle.
101 std::unique_ptr<RasterizerInterface> rasterizer;
102 std::unique_ptr<Core::Frontend::GraphicsContext> context; 89 std::unique_ptr<Core::Frontend::GraphicsContext> context;
103 f32 m_current_fps = 0.0f; ///< Current framerate, should be set by the renderer 90 f32 m_current_fps = 0.0f; ///< Current framerate, should be set by the renderer
104 int m_current_frame = 0; ///< Current frame, should be set by the renderer 91 int m_current_frame = 0; ///< Current frame, should be set by the renderer