#include <shader_library_vk.h>
Definition at line 18 of file shader_library_vk.h.
◆ ~ShaderLibraryVK()
impeller::ShaderLibraryVK::~ShaderLibraryVK |
( |
| ) |
|
|
overridedefault |
◆ GetFunction()
Implements impeller::ShaderLibrary.
Definition at line 94 of file shader_library_vk.cc.
96 {
97 ReaderLock lock(functions_mutex_);
98
99 const auto key = ShaderKey{{
name.data(),
name.size()}, stage};
100 auto found = functions_.find(
key);
101 if (found != functions_.end()) {
102 return found->second;
103 }
104 return nullptr;
105}
◆ IsValid()
bool impeller::ShaderLibraryVK::IsValid |
( |
| ) |
const |
|
overridevirtual |
◆ RegisterFunction()
Reimplemented from impeller::ShaderLibrary.
Definition at line 108 of file shader_library_vk.cc.
111 {
115 }
116}
void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback) override
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
◆ UnregisterFunction()
void impeller::ShaderLibraryVK::UnregisterFunction |
( |
std::string |
name, |
|
|
ShaderStage |
stage |
|
) |
| |
|
overrideprivatevirtual |
Implements impeller::ShaderLibrary.
Definition at line 179 of file shader_library_vk.cc.
179 {
180 WriterLock lock(functions_mutex_);
181
182 const auto key = ShaderKey{
name, stage};
183
184 auto found = functions_.find(
key);
185 if (found == functions_.end()) {
187 << " was not found, so it couldn't be unregistered.";
188 return;
189 }
190
191 functions_.erase(found);
192
193 return;
194}
◆ ContextVK
The documentation for this class was generated from the following files: