5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_
27 std::weak_ptr<DeviceHolderVK> device_holder_;
29 mutable RWMutex functions_mutex_;
31 bool is_valid_ =
false;
34 std::weak_ptr<DeviceHolderVK> device_holder,
35 const std::vector<std::shared_ptr<fml::Mapping>>& shader_libraries_data);
38 std::shared_ptr<const ShaderFunction> GetFunction(std::string_view name,
42 void RegisterFunction(std::string name,
44 std::shared_ptr<fml::Mapping> code,
47 bool RegisterFunction(
const std::string& name,
49 const std::shared_ptr<fml::Mapping>& code);
52 void UnregisterFunction(std::string name,
ShaderStage stage)
override;
61 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_