#include "impeller/compiler/shader_bundle.h"
#include <filesystem>
#include <sstream>
#include "flutter/fml/file.h"
#include "flutter/fml/mapping.h"
#include "impeller/compiler/compiler.h"
#include "impeller/compiler/reflector.h"
#include "impeller/compiler/source_options.h"
#include "impeller/compiler/types.h"
#include "impeller/compiler/utilities.h"
#include "impeller/runtime_stage/runtime_stage.h"
#include "impeller/shader_bundle/shader_bundle_flatbuffers.h"
#include "third_party/json/include/nlohmann/json.hpp"
Go to the source code of this file.
|
| std::optional< ShaderBundleConfig > | impeller::compiler::ParseShaderBundleConfig (const std::string &bundle_config_json, std::ostream &error_stream) |
| | Parse a shader bundle configuration from a given JSON string.
|
| |
| static std::unique_ptr< fb::shaderbundle::BackendShaderT > | impeller::compiler::GenerateShaderBackendFB (TargetPlatform target_platform, SourceOptions &options, const std::string &shader_name, const ShaderConfig &shader_config, std::set< std::string > *out_dependencies) |
| |
| static std::unique_ptr< fb::shaderbundle::ShaderT > | impeller::compiler::GenerateShaderFB (SourceOptions options, const std::string &shader_name, const ShaderConfig &shader_config, std::set< std::string > *out_dependencies) |
| |
| std::optional< fb::shaderbundle::ShaderBundleT > | impeller::compiler::GenerateShaderBundleFlatbuffer (const std::string &bundle_config_json, const SourceOptions &options, std::set< std::string > *out_dependencies=nullptr) |
| | Parses the JSON shader bundle configuration and invokes the compiler multiple times to produce a shader bundle flatbuffer.
|
| |
| static bool | impeller::compiler::OutputBundleDepfile (const Switches &switches, const std::string &target, const std::set< std::string > &dependencies) |
| |
| bool | impeller::compiler::GenerateShaderBundle (Switches &switches) |
| | Parses the JSON shader bundle configuration and invokes the compiler multiple times to produce a shader bundle flatbuffer, which is then output to the sl file.
|
| |