#include <reflector.h>
Definition at line 164 of file reflector.h.
◆ Reflector()
| impeller::compiler::Reflector::Reflector |
( |
Options |
options, |
|
|
const std::shared_ptr< const spirv_cross::ParsedIR > & |
ir, |
|
|
const std::shared_ptr< fml::Mapping > & |
shader_data, |
|
|
const CompilerBackend & |
compiler |
|
) |
| |
Definition at line 64 of file reflector.cc.
68 : options_(std::move(options)),
70 shader_data_(shader_data),
72 if (!ir_ || !compiler_) {
76 if (
auto template_arguments = GenerateTemplateArguments();
77 template_arguments.has_value()) {
79 std::make_unique<nlohmann::json>(std::move(template_arguments.value()));
84 reflection_header_ = GenerateReflectionHeader();
85 if (!reflection_header_) {
89 reflection_cc_ = GenerateReflectionCC();
90 if (!reflection_cc_) {
94 runtime_stage_shader_ = GenerateRuntimeStageData();
96 shader_bundle_data_ = GenerateShaderBundleData();
97 if (!shader_bundle_data_) {
◆ ~Reflector()
| impeller::compiler::Reflector::~Reflector |
( |
| ) |
|
|
default |
◆ GetReflectionCC()
| std::shared_ptr< fml::Mapping > impeller::compiler::Reflector::GetReflectionCC |
( |
| ) |
const |
◆ GetReflectionHeader()
| std::shared_ptr< fml::Mapping > impeller::compiler::Reflector::GetReflectionHeader |
( |
| ) |
const |
Definition at line 123 of file reflector.cc.
124 return reflection_header_;
◆ GetReflectionJSON()
| std::shared_ptr< fml::Mapping > impeller::compiler::Reflector::GetReflectionJSON |
( |
| ) |
const |
Definition at line 110 of file reflector.cc.
116 std::make_shared<std::string>(template_arguments_->dump(2u));
118 return std::make_shared<fml::NonOwnedMapping>(
119 reinterpret_cast<const uint8_t*
>(json_string->data()),
120 json_string->size(), [json_string](
auto,
auto) {});
◆ GetRuntimeStageShaderData()
Definition at line 131 of file reflector.cc.
133 return runtime_stage_shader_;
◆ GetShaderBundleData()
| std::shared_ptr< ShaderBundleData > impeller::compiler::Reflector::GetShaderBundleData |
( |
| ) |
const |
◆ IsValid()
| bool impeller::compiler::Reflector::IsValid |
( |
| ) |
const |
The documentation for this class was generated from the following files: