5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_
8 #include "flutter/fml/file.h"
9 #include "flutter/fml/macros.h"
22 std::shared_ptr<DeviceHolderVK> device_holder,
23 fml::UniqueFD cache_directory);
29 vk::UniquePipeline
CreatePipeline(
const vk::GraphicsPipelineCreateInfo& info);
31 vk::UniquePipeline
CreatePipeline(
const vk::ComputePipelineCreateInfo& info);
38 const std::shared_ptr<const Capabilities> caps_;
39 std::weak_ptr<DeviceHolderVK> device_holder_;
40 const fml::UniqueFD cache_directory_;
41 vk::UniquePipelineCache cache_;
42 bool is_valid_ =
false;
44 std::shared_ptr<fml::Mapping> CopyPipelineCacheData()
const;
53 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_PIPELINE_CACHE_VK_H_