5#ifndef FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_
6#define FLUTTER_IMPELLER_RENDERER_SHADER_LIBRARY_H_
20class ShaderLibrary :
public std::enable_shared_from_this<ShaderLibrary> {
27 std::string_view
name,
33 std::shared_ptr<fml::Mapping>
code,
virtual std::shared_ptr< const ShaderFunction > GetFunction(std::string_view name, ShaderStage stage)=0
virtual void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback)
virtual void UnregisterFunction(std::string name, ShaderStage stage)=0
virtual bool IsValid() const =0
std::function< void(bool)> RegistrationCallback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
Dart_NativeFunction function
DEF_SWITCHES_START aot vmservice shared library name