Classes | |
class | CompilerTest |
Functions | |
static std::string | GetIntermediatesPath () |
static std::string | ReflectionHeaderName (const char *fixture_name) |
static std::string | ReflectionCCName (const char *fixture_name) |
static std::string | ReflectionJSONName (const char *fixture_name) |
static std::string | SPIRVFileName (const char *fixture_name) |
static std::string | SLFileName (const char *fixture_name, TargetPlatform platform) |
TEST (CompilerTest, Defines) | |
TEST (CompilerTest, ShaderKindMatchingIsSuccessful) | |
TEST_P (CompilerTest, CanCompile) | |
TEST_P (CompilerTest, CanCompileHLSL) | |
TEST_P (CompilerTest, CanCompileHLSLWithMultipleStages) | |
TEST_P (CompilerTest, CanCompileComputeShader) | |
TEST_P (CompilerTest, MustFailDueToExceedingResourcesLimit) | |
TEST_P (CompilerTest, MustFailDueToMultipleLocationPerStructMember) | |
TEST_P (CompilerTest, BindingBaseForFragShader) | |
TEST_P (CompilerTest, UniformsHaveBindingAndSet) | |
TEST_P (CompilerTest, SkSLTextureLookUpOrderOfOperations) | |
TEST_P (CompilerTest, CanCompileStructs) | |
INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P (CompilerSuite) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsForInvalidJSON) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsWhenEntryNotObject) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsWhenMissingFile) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsWhenMissingType) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsForInvalidType) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigFailsForInvalidLanguage) | |
TEST (ShaderBundleTest, ParseShaderBundleConfigReturnsExpectedConfig) | |
template<typename T > | |
const T * | FindByName (const std::vector< std::unique_ptr< T >> &collection, const std::string &name) |
TEST (ShaderBundleTest, GenerateShaderBundleFlatbufferProducesCorrectResult) | |
Switches | MakeSwitchesDesktopGL (std::initializer_list< const char * > additional_options={}) |
TEST (SwitchesTest, DoesntMangleUnicodeIncludes) | |
TEST (SwitchesTest, SourceLanguageDefaultsToGLSL) | |
TEST (SwitchesTest, SourceLanguageCanBeSetToHLSL) | |
TEST (SwitchesTest, DefaultEntryPointIsMain) | |
TEST (SwitchesTest, EntryPointCanBeSetForHLSL) | |
TEST (SwitchesTEst, ConvertToEntrypointName) | |
TEST (SwitchesTest, ShaderBundleModeValid) | |
Variables | |
const std::string | kUnlitFragmentBundleConfig |
const std::string | kUnlitVertexBundleConfig |
const T* impeller::compiler::testing::FindByName | ( | const std::vector< std::unique_ptr< T >> & | collection, |
const std::string & | name | ||
) |
|
static |
Definition at line 16 of file compiler_test.cc.
impeller::compiler::testing::INSTANTIATE_TARGET_PLATFORM_TEST_SUITE_P | ( | CompilerSuite | ) |
Switches impeller::compiler::testing::MakeSwitchesDesktopGL | ( | std::initializer_list< const char * > | additional_options = {} | ) |
|
static |
Definition at line 46 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTest::CanCompileAndReflect().
|
static |
Definition at line 40 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTest::CanCompileAndReflect().
|
static |
Definition at line 52 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTest::CanCompileAndReflect(), and impeller::compiler::testing::CompilerTest::GetReflectionJson().
|
static |
Definition at line 64 of file compiler_test.cc.
References impeller::compiler::TargetPlatformSLExtension().
Referenced by impeller::compiler::testing::CompilerTest::CanCompileAndReflect(), and impeller::compiler::testing::CompilerTest::GetShaderFile().
|
static |
Definition at line 58 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTest::CanCompileAndReflect().
impeller::compiler::testing::TEST | ( | CompilerTest | , |
Defines | |||
) |
Definition at line 18 of file compiler_unittests.cc.
References impeller::compiler::SourceOptions::entry_point_name, impeller::compiler::Compiler::GetSPIRVAssembly(), impeller::compiler::kFragmentShader, impeller::compiler::kGLSL, impeller::compiler::kRuntimeStageGLES, impeller::compiler::kRuntimeStageVulkan, impeller::compiler::SourceOptions::source_language, impeller::compiler::Reflector::Options::target_platform, impeller::compiler::SourceOptions::target_platform, and impeller::compiler::SourceOptions::type.
impeller::compiler::testing::TEST | ( | CompilerTest | , |
ShaderKindMatchingIsSuccessful | |||
) |
Definition at line 42 of file compiler_unittests.cc.
References impeller::compiler::kComputeShader, impeller::compiler::kFragmentShader, impeller::compiler::kUnknown, impeller::compiler::kVertexShader, and impeller::compiler::SourceTypeFromFileName().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
GenerateShaderBundleFlatbufferProducesCorrectResult | |||
) |
Verify vertex shader.
Verify fragment shader.
Definition at line 130 of file shader_bundle_unittests.cc.
References FindByName(), impeller::compiler::GenerateShaderBundleFlatbuffer(), impeller::kFloat, impeller::compiler::kGLSL, impeller::compiler::kRuntimeStageMetal, impeller::compiler::SourceOptions::source_language, and impeller::compiler::SourceOptions::target_platform.
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsForInvalidJSON | |||
) |
Definition at line 24 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsForInvalidLanguage | |||
) |
Definition at line 76 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsForInvalidType | |||
) |
Definition at line 64 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsWhenEntryNotObject | |||
) |
Definition at line 33 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsWhenMissingFile | |||
) |
Definition at line 43 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigFailsWhenMissingType | |||
) |
Definition at line 53 of file shader_bundle_unittests.cc.
References impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | ShaderBundleTest | , |
ParseShaderBundleConfigReturnsExpectedConfig | |||
) |
Definition at line 88 of file shader_bundle_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kGLSL, kUnlitFragmentBundleConfig, kUnlitVertexBundleConfig, impeller::compiler::kVertexShader, and impeller::compiler::ParseShaderBundleConfig().
impeller::compiler::testing::TEST | ( | SwitchesTEst | , |
ConvertToEntrypointName | |||
) |
Definition at line 72 of file switches_unittests.cc.
References impeller::compiler::ConvertToEntrypointName().
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
DefaultEntryPointIsMain | |||
) |
Definition at line 60 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::Switches::entry_point, and MakeSwitchesDesktopGL().
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
DoesntMangleUnicodeIncludes | |||
) |
Definition at line 31 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::Switches::include_directories, and MakeSwitchesDesktopGL().
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
EntryPointCanBeSetForHLSL | |||
) |
Definition at line 66 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::Switches::entry_point, and MakeSwitchesDesktopGL().
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
ShaderBundleModeValid | |||
) |
Definition at line 83 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), and impeller::compiler::Switches::shader_bundle.
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
SourceLanguageCanBeSetToHLSL | |||
) |
Definition at line 54 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::kHLSL, MakeSwitchesDesktopGL(), and impeller::compiler::Switches::source_language.
impeller::compiler::testing::TEST | ( | SwitchesTest | , |
SourceLanguageDefaultsToGLSL | |||
) |
Definition at line 48 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::kGLSL, MakeSwitchesDesktopGL(), and impeller::compiler::Switches::source_language.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
BindingBaseForFragShader | |||
) |
Definition at line 106 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kVertexShader, and impeller::compiler::TargetPlatformIsVulkan().
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
CanCompile | |||
) |
Definition at line 50 of file compiler_unittests.cc.
References impeller::compiler::kGLSL, impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
CanCompileComputeShader | |||
) |
Definition at line 80 of file compiler_unittests.cc.
References impeller::compiler::kComputeShader, and impeller::compiler::TargetPlatformIsMetal().
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
CanCompileHLSL | |||
) |
Definition at line 60 of file compiler_unittests.cc.
References impeller::compiler::kHLSL, impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
CanCompileHLSLWithMultipleStages | |||
) |
Definition at line 68 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kHLSL, impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
CanCompileStructs | |||
) |
Definition at line 172 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, and impeller::compiler::kSkSL.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
MustFailDueToExceedingResourcesLimit | |||
) |
Definition at line 89 of file compiler_unittests.cc.
References impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
MustFailDueToMultipleLocationPerStructMember | |||
) |
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
SkSLTextureLookUpOrderOfOperations | |||
) |
Definition at line 155 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, and impeller::compiler::kSkSL.
impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
UniformsHaveBindingAndSet | |||
) |
Definition at line 126 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
const std::string impeller::compiler::testing::kUnlitFragmentBundleConfig |
Definition at line 17 of file shader_bundle_unittests.cc.
Referenced by TEST().
const std::string impeller::compiler::testing::kUnlitVertexBundleConfig |
Definition at line 20 of file shader_bundle_unittests.cc.
Referenced by TEST().