 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_COMPILER_TYPES_H_
6 #define FLUTTER_IMPELLER_COMPILER_TYPES_H_
13 #include "flutter/fml/macros.h"
14 #include "shaderc/shaderc.hpp"
15 #include "spirv_cross.hpp"
16 #include "spirv_msl.hpp"
78 const std::string& file_name,
81 const std::string& entry_point_name);
99 #endif // FLUTTER_IMPELLER_COMPILER_TYPES_H_
std::string TargetPlatformSLExtension(TargetPlatform platform)
spirv_cross::CompilerMSL::Options::Platform TargetPlatformToMSLPlatform(TargetPlatform platform)
std::string SourceLanguageToString(SourceLanguage source_language)
bool TargetPlatformNeedsReflection(TargetPlatform platform)
SourceLanguage ToSourceLanguage(const std::string &source_language)
bool TargetPlatformIsOpenGL(TargetPlatform platform)
std::string EntryPointFunctionNameFromSourceName(const std::string &file_name, SourceType type, SourceLanguage source_language, const std::string &entry_point_name)
bool TargetPlatformIsMetal(TargetPlatform platform)
bool TargetPlatformIsVulkan(TargetPlatform platform)
spv::ExecutionModel ToExecutionModel(SourceType type)
SourceType SourceTypeFromFileName(const std::string &file_name)
std::unordered_map< std::string, ShaderConfig > ShaderBundleConfig
SourceType SourceTypeFromString(std::string name)
std::string TargetPlatformToString(TargetPlatform platform)
std::string SourceTypeToString(SourceType type)
std::string source_file_name
shaderc_shader_kind ToShaderCShaderKind(SourceType type)
bool TargetPlatformBundlesSkSL(TargetPlatform platform)
A shader config parsed as part of a ShaderBundleConfig.
std::string ShaderCErrorToString(shaderc_compilation_status status)