5#ifndef FLUTTER_IMPELLER_COMPILER_TYPES_H_
6#define FLUTTER_IMPELLER_COMPILER_TYPES_H_
14#include "shaderc/shaderc.hpp"
15#include "spirv_cross.hpp"
16#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);
DEF_SWITCHES_START aot vmservice shared library name
std::string SourceLanguageToString(SourceLanguage source_language)
std::string TargetPlatformToString(TargetPlatform platform)
std::string TargetPlatformSLExtension(TargetPlatform platform)
shaderc_shader_kind ToShaderCShaderKind(SourceType type)
std::string SourceTypeToString(SourceType type)
std::unordered_map< std::string, ShaderConfig > ShaderBundleConfig
SourceType SourceTypeFromString(std::string name)
SourceType SourceTypeFromFileName(const std::string &file_name)
std::string EntryPointFunctionNameFromSourceName(const std::string &file_name, SourceType type, SourceLanguage source_language, const std::string &entry_point_name)
bool TargetPlatformIsMetal(TargetPlatform platform)
bool TargetPlatformIsOpenGL(TargetPlatform platform)
std::string ShaderCErrorToString(shaderc_compilation_status status)
bool TargetPlatformIsVulkan(TargetPlatform platform)
bool TargetPlatformBundlesSkSL(TargetPlatform platform)
spirv_cross::CompilerMSL::Options::Platform TargetPlatformToMSLPlatform(TargetPlatform platform)
SourceLanguage ToSourceLanguage(const std::string &source_language)
bool TargetPlatformNeedsReflection(TargetPlatform platform)
spv::ExecutionModel ToExecutionModel(SourceType type)
A shader config parsed as part of a ShaderBundleConfig.
std::string source_file_name