27 public BackendCast<PipelineLibraryVK, PipelineLibrary> {
34 const std::shared_ptr<PipelineCacheVK>&
GetPSOCache()
const;
41 std::weak_ptr<DeviceHolderVK> device_holder_;
42 std::shared_ptr<PipelineCacheVK> pso_cache_;
43 std::shared_ptr<fml::ConcurrentTaskRunner> worker_task_runner_;
44 Mutex pipelines_mutex_;
47 std::atomic_size_t frames_acquired_ = 0u;
49 bool is_valid_ =
false;
50 bool cache_dirty_ =
false;
53 const std::shared_ptr<DeviceHolderVK>& device_holder,
54 std::shared_ptr<const Capabilities> caps,
56 std::shared_ptr<fml::ConcurrentTaskRunner> worker_task_runner);
59 bool IsValid()
const override;
65 bool threadsafe =
false)
override;
76 void RemovePipelinesWithEntryPoint(
77 std::shared_ptr<const ShaderFunction> function)
override;
79 std::unique_ptr<ComputePipelineVK> CreateComputePipeline(
83 void PersistPipelineCacheToDisk();
std::vector< std::pair< uint64_t, std::unique_ptr< GenericRenderPipelineHandle > > > pipelines_