5 #ifndef FLUTTER_IMPELLER_RENDERER_SHADER_KEY_H_
6 #define FLUTTER_IMPELLER_RENDERER_SHADER_KEY_H_
10 #include <unordered_map>
12 #include "flutter/fml/hash_combine.h"
22 :
name({p_name.data(), p_name.size()}),
stage(p_stage) {}
26 return fml::HashCombine(key.
name, key.
stage);
41 std::shared_ptr<const ShaderFunction>,
std::unordered_map< ShaderKey, std::shared_ptr< const ShaderFunction >, ShaderKey::Hash, ShaderKey::Equal > ShaderFunctionMap
constexpr bool operator()(const ShaderKey &k1, const ShaderKey &k2) const
size_t operator()(const ShaderKey &key) const
ShaderKey(std::string_view p_name, ShaderStage p_stage)