#include <compiler_test.h>
Public Member Functions | |
CompilerTest () | |
~CompilerTest () | |
std::unique_ptr< fml::FileMapping > | GetReflectionJson (const char *fixture_name) const |
std::unique_ptr< fml::FileMapping > | GetShaderFile (const char *fixture_name, TargetPlatform platform) const |
bool | CanCompileAndReflect (const char *fixture_name, SourceType source_type=SourceType::kUnknown, SourceLanguage source_language=SourceLanguage::kGLSL, const char *entry_point_name="main") const |
Definition at line 18 of file compiler_test.h.
impeller::compiler::testing::CompilerTest::CompilerTest | ( | ) |
Definition at line 26 of file compiler_test.cc.
impeller::compiler::testing::CompilerTest::~CompilerTest | ( | ) |
Definition at line 34 of file compiler_test.cc.
bool impeller::compiler::testing::CompilerTest::CanCompileAndReflect | ( | const char * | fixture_name, |
SourceType | source_type = SourceType::kUnknown , |
||
SourceLanguage | source_language = SourceLanguage::kGLSL , |
||
const char * | entry_point_name = "main" |
||
) | const |
Definition at line 86 of file compiler_test.cc.
References impeller::compiler::SourceOptions::entry_point_name, impeller::compiler::EntryPointFunctionNameFromSourceName(), impeller::compiler::Compiler::GetErrorMessages(), impeller::compiler::Compiler::GetReflector(), impeller::compiler::Compiler::GetSLShaderSource(), impeller::compiler::Compiler::GetSPIRVAssembly(), impeller::compiler::Reflector::Options::header_file_name, impeller::compiler::Compiler::IsValid(), impeller::compiler::testing::ReflectionCCName(), impeller::compiler::testing::ReflectionHeaderName(), impeller::compiler::testing::ReflectionJSONName(), impeller::compiler::Reflector::Options::shader_name, impeller::compiler::testing::SLFileName(), impeller::compiler::SourceOptions::source_language, impeller::compiler::SourceTypeFromFileName(), impeller::compiler::testing::SPIRVFileName(), impeller::compiler::SourceOptions::target_platform, impeller::compiler::TargetPlatformNeedsReflection(), VALIDATION_LOG, and impeller::compiler::SourceOptions::working_directory.
std::unique_ptr< fml::FileMapping > impeller::compiler::testing::CompilerTest::GetReflectionJson | ( | const char * | fixture_name | ) | const |
Definition at line 71 of file compiler_test.cc.
References impeller::compiler::testing::ReflectionJSONName().
std::unique_ptr< fml::FileMapping > impeller::compiler::testing::CompilerTest::GetShaderFile | ( | const char * | fixture_name, |
TargetPlatform | platform | ||
) | const |
Definition at line 78 of file compiler_test.cc.
References impeller::compiler::testing::SLFileName().