diff options
author | Fernando S <fsahmkow27@gmail.com> | 2023-01-05 22:38:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-05 22:38:07 +0100 |
commit | 1428451722718d7af450f67d7ec823b155b128d2 (patch) | |
tree | d498f1f26f66edcb3e2517cd83d1fd8f6d8f015f /src/video_core/renderer_vulkan/vk_pipeline_cache.h | |
parent | Merge pull request #9557 from FernandoS27/ooops-i-killed-the-shitty-drivers (diff) | |
parent | video_core/vulkan: Vulkan driver pipelines now contain cache version (diff) | |
download | yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.gz yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.bz2 yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.lz yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.xz yuzu-1428451722718d7af450f67d7ec823b155b128d2.tar.zst yuzu-1428451722718d7af450f67d7ec823b155b128d2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_pipeline_cache.h | 10 |
1 files changed, 10 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 b4f593ef5..5171912d7 100644 --- a/src/video_core/renderer_vulkan/vk_pipeline_cache.h +++ b/src/video_core/renderer_vulkan/vk_pipeline_cache.h @@ -135,6 +135,12 @@ private: PipelineStatistics* statistics, bool build_in_parallel); + void SerializeVulkanPipelineCache(const std::filesystem::path& filename, + const vk::PipelineCache& pipeline_cache, u32 cache_version); + + vk::PipelineCache LoadVulkanPipelineCache(const std::filesystem::path& filename, + u32 expected_cache_version); + const Device& device; Scheduler& scheduler; DescriptorPool& descriptor_pool; @@ -144,6 +150,7 @@ private: TextureCache& texture_cache; VideoCore::ShaderNotify& shader_notify; bool use_asynchronous_shaders{}; + bool use_vulkan_pipeline_cache{}; GraphicsPipelineCacheKey graphics_key{}; GraphicsPipeline* current_pipeline{}; @@ -158,6 +165,9 @@ private: std::filesystem::path pipeline_cache_filename; + std::filesystem::path vulkan_pipeline_cache_filename; + vk::PipelineCache vulkan_pipeline_cache; + Common::ThreadWorker workers; Common::ThreadWorker serialization_thread; DynamicFeatures dynamic_features; |