5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SHADER_LIBRARY_VK_H_
8#include "flutter/fml/macros.h"
28 std::weak_ptr<DeviceHolderVK> device_holder_;
30 mutable RWMutex functions_mutex_;
32 bool is_valid_ =
false;
35 std::weak_ptr<DeviceHolderVK> device_holder,
36 const std::vector<std::shared_ptr<fml::Mapping>>& shader_libraries_data);
39 std::shared_ptr<const ShaderFunction>
GetFunction(std::string_view
name,
45 std::shared_ptr<fml::Mapping> code,
50 const std::shared_ptr<fml::Mapping>& code);
void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback) override
std::shared_ptr< const ShaderFunction > GetFunction(std::string_view name, ShaderStage stage) override
~ShaderLibraryVK() override
bool IsValid() const override
void UnregisterFunction(std::string name, ShaderStage stage) override
std::function< void(bool)> RegistrationCallback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
std::unordered_map< ShaderKey, std::shared_ptr< const ShaderFunction >, ShaderKey::Hash, ShaderKey::Equal > ShaderFunctionMap
#define IPLR_GUARDED_BY(x)