Flutter Engine
The Flutter Engine
Classes | Namespaces | Typedefs | Enumerations | Functions
types.h File Reference
#include <codecvt>
#include <locale>
#include <map>
#include <optional>
#include <string>
#include "shaderc/shaderc.hpp"
#include "spirv_cross.hpp"
#include "spirv_msl.hpp"

Go to the source code of this file.

Classes

struct  impeller::compiler::UniformDescription
 
struct  impeller::compiler::InputDescription
 
struct  impeller::compiler::ShaderConfig
 A shader config parsed as part of a ShaderBundleConfig. More...
 

Namespaces

namespace  impeller
 
namespace  impeller::compiler
 

Typedefs

using impeller::compiler::ShaderBundleConfig = std::unordered_map< std::string, ShaderConfig >
 

Enumerations

enum class  impeller::compiler::SourceType { impeller::compiler::kUnknown , impeller::compiler::kVertexShader , impeller::compiler::kFragmentShader , impeller::compiler::kComputeShader }
 
enum class  impeller::compiler::TargetPlatform {
  impeller::compiler::kUnknown , impeller::compiler::kMetalDesktop , impeller::compiler::kMetalIOS , impeller::compiler::kOpenGLES ,
  impeller::compiler::kOpenGLDesktop , impeller::compiler::kVulkan , impeller::compiler::kRuntimeStageMetal , impeller::compiler::kRuntimeStageGLES ,
  impeller::compiler::kRuntimeStageVulkan , impeller::compiler::kSkSL
}
 
enum class  impeller::compiler::SourceLanguage { impeller::compiler::kUnknown , impeller::compiler::kGLSL , impeller::compiler::kHLSL }
 

Functions

bool impeller::compiler::TargetPlatformIsMetal (TargetPlatform platform)
 
bool impeller::compiler::TargetPlatformIsOpenGL (TargetPlatform platform)
 
bool impeller::compiler::TargetPlatformIsVulkan (TargetPlatform platform)
 
SourceType impeller::compiler::SourceTypeFromFileName (const std::string &file_name)
 
SourceType impeller::compiler::SourceTypeFromString (std::string name)
 
std::string impeller::compiler::SourceTypeToString (SourceType type)
 
std::string impeller::compiler::TargetPlatformToString (TargetPlatform platform)
 
SourceLanguage impeller::compiler::ToSourceLanguage (const std::string &source_language)
 
std::string impeller::compiler::SourceLanguageToString (SourceLanguage source_language)
 
std::string impeller::compiler::TargetPlatformSLExtension (TargetPlatform platform)
 
std::string impeller::compiler::EntryPointFunctionNameFromSourceName (const std::string &file_name, SourceType type, SourceLanguage source_language, const std::string &entry_point_name)
 
bool impeller::compiler::TargetPlatformNeedsReflection (TargetPlatform platform)
 
bool impeller::compiler::TargetPlatformBundlesSkSL (TargetPlatform platform)
 
std::string impeller::compiler::ShaderCErrorToString (shaderc_compilation_status status)
 
shaderc_shader_kind impeller::compiler::ToShaderCShaderKind (SourceType type)
 
spv::ExecutionModel impeller::compiler::ToExecutionModel (SourceType type)
 
spirv_cross::CompilerMSL::Options::Platform impeller::compiler::TargetPlatformToMSLPlatform (TargetPlatform platform)