summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_base.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/video_core/renderer_base.h b/src/video_core/renderer_base.h
index 5c650808b..51dde8eb5 100644
--- a/src/video_core/renderer_base.h
+++ b/src/video_core/renderer_base.h
@@ -38,7 +38,7 @@ public:
38 virtual ~RendererBase(); 38 virtual ~RendererBase();
39 39
40 /// Initialize the renderer 40 /// Initialize the renderer
41 virtual bool Init() = 0; 41 [[nodiscard]] virtual bool Init() = 0;
42 42
43 /// Shutdown the renderer 43 /// Shutdown the renderer
44 virtual void ShutDown() = 0; 44 virtual void ShutDown() = 0;
@@ -49,43 +49,43 @@ public:
49 // Getter/setter functions: 49 // Getter/setter functions:
50 // ------------------------ 50 // ------------------------
51 51
52 f32 GetCurrentFPS() const { 52 [[nodiscard]] f32 GetCurrentFPS() const {
53 return m_current_fps; 53 return m_current_fps;
54 } 54 }
55 55
56 int GetCurrentFrame() const { 56 [[nodiscard]] int GetCurrentFrame() const {
57 return m_current_frame; 57 return m_current_frame;
58 } 58 }
59 59
60 RasterizerInterface& Rasterizer() { 60 [[nodiscard]] RasterizerInterface& Rasterizer() {
61 return *rasterizer; 61 return *rasterizer;
62 } 62 }
63 63
64 const RasterizerInterface& Rasterizer() const { 64 [[nodiscard]] const RasterizerInterface& Rasterizer() const {
65 return *rasterizer; 65 return *rasterizer;
66 } 66 }
67 67
68 Core::Frontend::GraphicsContext& Context() { 68 [[nodiscard]] Core::Frontend::GraphicsContext& Context() {
69 return *context; 69 return *context;
70 } 70 }
71 71
72 const Core::Frontend::GraphicsContext& Context() const { 72 [[nodiscard]] const Core::Frontend::GraphicsContext& Context() const {
73 return *context; 73 return *context;
74 } 74 }
75 75
76 Core::Frontend::EmuWindow& GetRenderWindow() { 76 [[nodiscard]] Core::Frontend::EmuWindow& GetRenderWindow() {
77 return render_window; 77 return render_window;
78 } 78 }
79 79
80 const Core::Frontend::EmuWindow& GetRenderWindow() const { 80 [[nodiscard]] const Core::Frontend::EmuWindow& GetRenderWindow() const {
81 return render_window; 81 return render_window;
82 } 82 }
83 83
84 RendererSettings& Settings() { 84 [[nodiscard]] RendererSettings& Settings() {
85 return renderer_settings; 85 return renderer_settings;
86 } 86 }
87 87
88 const RendererSettings& Settings() const { 88 [[nodiscard]] const RendererSettings& Settings() const {
89 return renderer_settings; 89 return renderer_settings;
90 } 90 }
91 91