|
| 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.
|
| |
| std::vector< std::string_view > | impeller::compiler::GetShaderBundleTargetPlatformDefines (TargetPlatform platform) |
| | The platform-discriminating preprocessor defines injected when compiling a bundled shader for platform (for example IMPELLER_TARGET_METAL). These let bundled Flutter GPU shaders specialize for the backend they will run on, matching the defines that Impeller's own shaders receive from the build templates.
|
| |
| 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.
|
| |