summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.h
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2018-02-09 20:52:25 +1000
committerStenzek <stenzek@gmail.com>2018-12-04 17:36:08 +1000
commit1adcd47dcbd80e0435d42e61dab3f00a22d1ca38 (patch)
treede2ce449d688e0d5d13fdb46dfd9e6396f63fb2c /Source/Core/VideoCommon/RenderBase.h
parent38479dd7830ab0790b487cbdee7477e6eb6b941d (diff)
Renderer: Add a base Initialize() method to match Shutdown()
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.h')
-rw-r--r--Source/Core/VideoCommon/RenderBase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h
index d5dd761c40..1c240c50ab 100644
--- a/Source/Core/VideoCommon/RenderBase.h
+++ b/Source/Core/VideoCommon/RenderBase.h
@@ -79,6 +79,9 @@ public:
virtual bool IsHeadless() const = 0;
+ virtual bool Initialize();
+ virtual void Shutdown();
+
virtual void SetPipeline(const AbstractPipeline* pipeline) {}
virtual void SetScissorRect(const MathUtil::Rectangle<int>& rc) {}
virtual void SetTexture(u32 index, const AbstractTexture* texture) {}
@@ -188,8 +191,6 @@ public:
virtual std::unique_ptr<VideoCommon::AsyncShaderCompiler> CreateAsyncShaderCompiler();
- virtual void Shutdown();
-
// Drawing utility shaders.
virtual void DrawUtilityPipeline(const void* uniforms, u32 uniforms_size, const void* vertices,
u32 vertex_stride, u32 num_vertices)