diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-20 07:23:50 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:39 +0200 |
commit | f5db8c74405c93b52efbdef318790bd9ec4661c7 (patch) | |
tree | b95c6eab579ef403c6c3cd454461decc4ec9e4d6 /src/video_core/renderer_opengl/gl_shader_cache.h | |
parent | gl_graphics_pipeline: Port optimizations from Vulkan pipelines (diff) | |
download | yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.gz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.bz2 yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.lz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.xz yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.tar.zst yuzu-f5db8c74405c93b52efbdef318790bd9ec4661c7.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.h b/src/video_core/renderer_opengl/gl_shader_cache.h index ff5707119..16873fcec 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.h +++ b/src/video_core/renderer_opengl/gl_shader_cache.h @@ -53,6 +53,8 @@ public: [[nodiscard]] ComputePipeline* CurrentComputePipeline(); private: + GraphicsPipeline* CurrentGraphicsPipelineSlowPath(); + std::unique_ptr<GraphicsPipeline> CreateGraphicsPipeline(); std::unique_ptr<GraphicsPipeline> CreateGraphicsPipeline( @@ -75,9 +77,10 @@ private: ProgramManager& program_manager; StateTracker& state_tracker; VideoCore::ShaderNotify& shader_notify; + const bool use_asynchronous_shaders; GraphicsPipelineKey graphics_key{}; - const bool use_asynchronous_shaders; + GraphicsPipeline* current_pipeline{}; ShaderContext::ShaderPools main_pools; std::unordered_map<GraphicsPipelineKey, std::unique_ptr<GraphicsPipeline>> graphics_cache; |