#include <shader_archive.h>
Definition at line 21 of file shader_archive.h.
◆ ShaderArchive()
◆ ~ShaderArchive()
impeller::ShaderArchive::~ShaderArchive |
( |
| ) |
|
|
default |
◆ GetMapping()
std::shared_ptr< fml::Mapping > impeller::ShaderArchive::GetMapping |
( |
ArchiveShaderType |
type, |
|
|
std::string |
name |
|
) |
| const |
Definition at line 74 of file shader_archive.cc.
79 key.name = std::move(name);
80 auto found = shaders_.find(key);
81 return found == shaders_.end() ? nullptr : found->second;
◆ GetShaderCount()
size_t impeller::ShaderArchive::GetShaderCount |
( |
| ) |
const |
◆ IsValid()
bool impeller::ShaderArchive::IsValid |
( |
| ) |
const |
◆ IterateAllShaders()
size_t impeller::ShaderArchive::IterateAllShaders |
( |
const std::function< bool(ArchiveShaderType type, const std::string &name, const std::shared_ptr< fml::Mapping > &mapping)> & |
callback | ) |
const |
Definition at line 84 of file shader_archive.cc.
93 for (
const auto& shader : shaders_) {
95 if (!callback(shader.first.type, shader.first.name, shader.second)) {
The documentation for this class was generated from the following files: