#include <spirv_compiler.h>
Public Member Functions | |
shaderc::CompileOptions | BuildShadercOptions () const |
Public Attributes | |
bool | generate_debug_info = true |
std::optional< shaderc_source_language > | source_langauge |
std::optional< SPIRVCompilerSourceProfile > | source_profile |
shaderc_optimization_level | optimization_level |
std::optional< SPIRVCompilerTargetEnv > | target |
std::vector< std::string > | macro_definitions |
std::shared_ptr< Includer > | includer |
bool | relaxed_vulkan_rules = false |
Definition at line 32 of file spirv_compiler.h.
shaderc::CompileOptions impeller::compiler::SPIRVCompilerOptions::BuildShadercOptions | ( | ) | const |
Definition at line 277 of file spirv_compiler.cc.
References generate_debug_info, includer, macro_definitions, impeller::compiler::UniqueIncluder::Make(), optimization_level, relaxed_vulkan_rules, impeller::compiler::SetBindingBaseOffset(), impeller::compiler::SetDefaultLimitations(), source_langauge, source_profile, and target.
Referenced by impeller::compiler::Compiler::Compiler().
bool impeller::compiler::SPIRVCompilerOptions::generate_debug_info = true |
Definition at line 33 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
std::shared_ptr<Includer> impeller::compiler::SPIRVCompilerOptions::includer |
Definition at line 50 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
std::vector<std::string> impeller::compiler::SPIRVCompilerOptions::macro_definitions |
Definition at line 48 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
shaderc_optimization_level impeller::compiler::SPIRVCompilerOptions::optimization_level |
Definition at line 40 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
bool impeller::compiler::SPIRVCompilerOptions::relaxed_vulkan_rules = false |
Definition at line 52 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
std::optional<shaderc_source_language> impeller::compiler::SPIRVCompilerOptions::source_langauge |
Definition at line 37 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
std::optional<SPIRVCompilerSourceProfile> impeller::compiler::SPIRVCompilerOptions::source_profile |
Definition at line 38 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().
std::optional<SPIRVCompilerTargetEnv> impeller::compiler::SPIRVCompilerOptions::target |
Definition at line 46 of file spirv_compiler.h.
Referenced by BuildShadercOptions(), and impeller::compiler::Compiler::Compiler().