#include <shader_archive.h>
Public Member Functions | |
ShaderArchive (std::shared_ptr< fml::Mapping > payload) | |
ShaderArchive (ShaderArchive &&) | |
~ShaderArchive () | |
bool | IsValid () const |
size_t | GetShaderCount () const |
std::shared_ptr< fml::Mapping > | GetMapping (ArchiveShaderType type, std::string name) const |
size_t | IterateAllShaders (const std::function< bool(ArchiveShaderType type, const std::string &name, const std::shared_ptr< fml::Mapping > &mapping)> &) const |
Definition at line 18 of file shader_archive.h.
|
explicit |
Definition at line 28 of file shader_archive.cc.
References end, impeller::ToShaderType(), and VALIDATION_LOG.
|
default |
|
default |
std::shared_ptr< fml::Mapping > impeller::ShaderArchive::GetMapping | ( | ArchiveShaderType | type, |
std::string | name | ||
) | const |
Definition at line 74 of file shader_archive.cc.
References type.
Referenced by impeller::testing::TEST().
size_t impeller::ShaderArchive::GetShaderCount | ( | ) | const |
Definition at line 70 of file shader_archive.cc.
Referenced by impeller::testing::TEST().
bool impeller::ShaderArchive::IsValid | ( | ) | const |
Definition at line 66 of file shader_archive.cc.
Referenced by IterateAllShaders(), and impeller::testing::TEST().
size_t impeller::ShaderArchive::IterateAllShaders | ( | const std::function< bool(ArchiveShaderType type, const std::string &name, const std::shared_ptr< fml::Mapping > &mapping)> & | callback | ) | const |