 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_COMPILER_TYPES_H_
6 #define FLUTTER_IMPELLER_COMPILER_TYPES_H_
14 #include "flutter/fml/macros.h"
15 #include "shaderc/shaderc.hpp"
16 #include "spirv_cross.hpp"
17 #include "spirv_msl.hpp"
51 spirv_cross::SPIRType::BaseType
type = spirv_cross::SPIRType::BaseType::Float;
65 spirv_cross::SPIRType::BaseType
type =
66 spirv_cross::SPIRType::BaseType::Unknown;
104 const std::string& file_name,
107 const std::string& entry_point_name);
125 #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)