diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-06-06 03:10:02 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 48aad8dc05f027c21aa0e8a68d827006d9f7a196 (patch) | |
tree | 3e1fa35387e82636d2d00fd0f56b8bab30d6e385 /src/video_core/renderer_vulkan/vk_pipeline_cache.h | |
parent | vk_rasterizer: Flush work on clear and dispatches (diff) | |
download | yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.gz yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.bz2 yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.lz yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.xz yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.tar.zst yuzu-48aad8dc05f027c21aa0e8a68d827006d9f7a196.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_pipeline_cache.h b/src/video_core/renderer_vulkan/vk_pipeline_cache.h index 4116cc73f..869c63baf 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h @@ -115,6 +115,8 @@ public: const VideoCore::DiskResourceLoadCallback& callback); private: + [[nodiscard]] GraphicsPipeline* BuiltPipeline(GraphicsPipeline* pipeline) const noexcept; + std::unique_ptr<GraphicsPipeline> CreateGraphicsPipeline(); std::unique_ptr<GraphicsPipeline> CreateGraphicsPipeline( @@ -140,6 +142,8 @@ private: GraphicsPipelineCacheKey graphics_key{}; GraphicsPipeline* current_pipeline{}; + bool use_asynchronous_shaders{}; + std::unordered_map<ComputePipelineCacheKey, std::unique_ptr<ComputePipeline>> compute_cache; std::unordered_map<GraphicsPipelineCacheKey, std::unique_ptr<GraphicsPipeline>> graphics_cache; |