#include <switches.h>
Public Member Functions | |
| Switches () | |
| ~Switches () | |
| Switches (const fml::CommandLine &command_line) | |
| bool | AreValid (std::ostream &explain) const |
Static Public Member Functions | |
| static void | PrintHelp (std::ostream &stream) |
Public Attributes | |
| TargetPlatform | target_platform = TargetPlatform::kUnknown |
| std::shared_ptr< fml::UniqueFD > | working_directory = nullptr |
| std::vector< IncludeDir > | include_directories = {} |
| std::string | source_file_name = "" |
| SourceType | input_type = SourceType::kUnknown |
| std::string | sl_file_name = "" |
| bool | iplr = false |
| std::string | spirv_file_name = "" |
| std::string | reflection_json_name = "" |
| std::string | reflection_header_name = "" |
| std::string | reflection_cc_name = "" |
| std::string | depfile_path = "" |
| std::vector< std::string > | defines = {} |
| bool | json_format = false |
| SourceLanguage | source_language = SourceLanguage::kUnknown |
| uint32_t | gles_language_version = 0 |
| std::string | metal_version = "" |
| std::string | entry_point = "" |
| bool | use_half_textures = false |
Definition at line 20 of file switches.h.
|
default |
|
default |
| impeller::compiler::Switches::Switches | ( | const fml::CommandLine & | command_line | ) |
Definition at line 113 of file switches.cc.
References defines, impeller::compiler::IncludeDir::dir, include_directories, impeller::compiler::kGLSL, impeller::compiler::kHLSL, impeller::compiler::IncludeDir::name, source_language, impeller::compiler::Utf8FromPath(), and working_directory.
| bool impeller::compiler::Switches::AreValid | ( | std::ostream & | explain | ) | const |
Definition at line 193 of file switches.cc.
References impeller::compiler::kUnknown, sl_file_name, source_file_name, source_language, spirv_file_name, target_platform, impeller::compiler::Utf8FromPath(), and working_directory.
Referenced by impeller::compiler::Main(), and impeller::compiler::testing::TEST().
|
static |
Definition at line 39 of file switches.cc.
References impeller::compiler::kKnownPlatforms, and impeller::compiler::kKnownSourceTypes.
Referenced by impeller::compiler::Main().
| std::vector<std::string> impeller::compiler::Switches::defines = {} |
Definition at line 33 of file switches.h.
Referenced by impeller::compiler::Main(), and Switches().
| std::string impeller::compiler::Switches::depfile_path = "" |
Definition at line 32 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::entry_point = "" |
Definition at line 38 of file switches.h.
Referenced by impeller::compiler::Main(), and impeller::compiler::testing::TEST().
| uint32_t impeller::compiler::Switches::gles_language_version = 0 |
Definition at line 36 of file switches.h.
Referenced by impeller::compiler::Main().
| std::vector<IncludeDir> impeller::compiler::Switches::include_directories = {} |
Definition at line 23 of file switches.h.
Referenced by impeller::compiler::Main(), Switches(), and impeller::compiler::testing::TEST().
| SourceType impeller::compiler::Switches::input_type = SourceType::kUnknown |
Definition at line 25 of file switches.h.
Referenced by impeller::compiler::Main().
| bool impeller::compiler::Switches::iplr = false |
Definition at line 27 of file switches.h.
Referenced by impeller::compiler::Main().
| bool impeller::compiler::Switches::json_format = false |
Definition at line 34 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::metal_version = "" |
Definition at line 37 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::reflection_cc_name = "" |
Definition at line 31 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::reflection_header_name = "" |
Definition at line 30 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::reflection_json_name = "" |
Definition at line 29 of file switches.h.
Referenced by impeller::compiler::Main().
| std::string impeller::compiler::Switches::sl_file_name = "" |
Definition at line 26 of file switches.h.
Referenced by AreValid(), and impeller::compiler::Main().
| std::string impeller::compiler::Switches::source_file_name = "" |
Definition at line 24 of file switches.h.
Referenced by AreValid(), and impeller::compiler::Main().
| SourceLanguage impeller::compiler::Switches::source_language = SourceLanguage::kUnknown |
Definition at line 35 of file switches.h.
Referenced by AreValid(), impeller::compiler::Main(), Switches(), and impeller::compiler::testing::TEST().
| std::string impeller::compiler::Switches::spirv_file_name = "" |
Definition at line 28 of file switches.h.
Referenced by AreValid(), and impeller::compiler::Main().
| TargetPlatform impeller::compiler::Switches::target_platform = TargetPlatform::kUnknown |
Definition at line 21 of file switches.h.
Referenced by AreValid(), and impeller::compiler::Main().
| bool impeller::compiler::Switches::use_half_textures = false |
Definition at line 39 of file switches.h.
Referenced by impeller::compiler::Main().
| std::shared_ptr<fml::UniqueFD> impeller::compiler::Switches::working_directory = nullptr |
Definition at line 22 of file switches.h.
Referenced by AreValid(), impeller::compiler::Main(), and Switches().