Classes | |
| class | CompilerTestBase |
| class | CompilerTest |
| class | CompilerTestRuntime |
| class | CompilerTestSkSL |
| class | CompilerTestUnknownPlatform |
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) |
| INSTANTIATE_TEST_SUITE_P (CompilerSuite, CompilerTest, ::testing::Values(TargetPlatform::kOpenGLES, TargetPlatform::kOpenGLDesktop, TargetPlatform::kMetalDesktop, TargetPlatform::kMetalIOS, TargetPlatform::kVulkan), [](const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);}) | |
| INSTANTIATE_TEST_SUITE_P (CompilerSuite, CompilerTestRuntime, ::testing::Values(TargetPlatform::kRuntimeStageMetal, TargetPlatform::kRuntimeStageGLES, TargetPlatform::kRuntimeStageGLES3, TargetPlatform::kRuntimeStageVulkan, TargetPlatform::kSkSL), [](const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);}) | |
| INSTANTIATE_TEST_SUITE_P (CompilerSuite, CompilerTestSkSL, ::testing::Values(TargetPlatform::kSkSL), [](const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);}) | |
| INSTANTIATE_TEST_SUITE_P (CompilerSuite, CompilerTestUnknownPlatform, ::testing::Values(TargetPlatform::kUnknown), [](const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);}) | |
| 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 (CompilerTestRuntime, UniformsAppearInJson) | |
| TEST_P (CompilerTestRuntime, PositionedUniformsAppearInJson) | |
| TEST_P (CompilerTest, UniformsHaveBindingAndSet) | |
| TEST_P (CompilerTestSkSL, SkSLTextureLookUpOrderOfOperations) | |
| TEST_P (CompilerTestSkSL, CanCompileStructs) | |
| TEST_P (CompilerTestSkSL, FailsToCompileDueToArrayInitializerWithConstants) | |
| TEST_P (CompilerTestSkSL, FailsToCompileDueToArrayInitializerWithVariables) | |
| TEST_P (CompilerTestSkSL, FailsToCompileDueToArrayAssignment) | |
| TEST_P (CompilerTestSkSL, CompilesWithValidArrayInitialization) | |
| TEST_P (CompilerTestRuntime, Mat2Reflection) | |
| TEST_P (CompilerTestUnknownPlatform, MustFailDueToUnknownPlatform) | |
| 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) | |
| TEST (SwitchesTest, EntryPointPrefixIsApplied) | |
| TEST (SwitchesTest, CommandLinePathUtf8) | |
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 17 of file compiler_test.cc.
| impeller::compiler::testing::INSTANTIATE_TEST_SUITE_P | ( | CompilerSuite | , |
| CompilerTest | , | ||
| ::testing::Values(TargetPlatform::kOpenGLES, TargetPlatform::kOpenGLDesktop, TargetPlatform::kMetalDesktop, TargetPlatform::kMetalIOS, TargetPlatform::kVulkan) | , | ||
| [] (const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);} | |||
| ) |
References impeller::compiler::TargetPlatformToString().
| impeller::compiler::testing::INSTANTIATE_TEST_SUITE_P | ( | CompilerSuite | , |
| CompilerTestRuntime | , | ||
| ::testing::Values(TargetPlatform::kRuntimeStageMetal, TargetPlatform::kRuntimeStageGLES, TargetPlatform::kRuntimeStageGLES3, TargetPlatform::kRuntimeStageVulkan, TargetPlatform::kSkSL) | , | ||
| [] (const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);} | |||
| ) |
References impeller::compiler::TargetPlatformToString().
| impeller::compiler::testing::INSTANTIATE_TEST_SUITE_P | ( | CompilerSuite | , |
| CompilerTestSkSL | , | ||
| ::testing::Values(TargetPlatform::kSkSL) | , | ||
| [] (const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);} | |||
| ) |
References impeller::compiler::TargetPlatformToString().
| impeller::compiler::testing::INSTANTIATE_TEST_SUITE_P | ( | CompilerSuite | , |
| CompilerTestUnknownPlatform | , | ||
| ::testing::Values(TargetPlatform::kUnknown) | , | ||
| [] (const ::testing::TestParamInfo< CompilerTest::ParamType > &info) { return TargetPlatformToString(info.param);} | |||
| ) |
References impeller::compiler::TargetPlatformToString().
| Switches impeller::compiler::testing::MakeSwitchesDesktopGL | ( | std::initializer_list< const char * > | additional_options = {} | ) |
|
static |
Definition at line 48 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTestBase::CanCompileAndReflect().
|
static |
Definition at line 42 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTestBase::CanCompileAndReflect().
|
static |
Definition at line 54 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTestBase::CanCompileAndReflect(), and impeller::compiler::testing::CompilerTestBase::GetReflectionJson().
|
static |
Definition at line 66 of file compiler_test.cc.
References impeller::compiler::TargetPlatformSLExtension().
Referenced by impeller::compiler::testing::CompilerTestBase::CanCompileAndReflect(), and impeller::compiler::testing::CompilerTestBase::GetShaderFile().
|
static |
Definition at line 60 of file compiler_test.cc.
Referenced by impeller::compiler::testing::CompilerTestBase::CanCompileAndReflect().
| impeller::compiler::testing::TEST | ( | CompilerTest | , |
| Defines | |||
| ) |
Definition at line 58 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 82 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 | , |
| CommandLinePathUtf8 | |||
| ) |
Definition at line 109 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), MakeSwitchesDesktopGL(), and impeller::compiler::Switches::source_file_name.
| impeller::compiler::testing::TEST | ( | SwitchesTEst | , |
| ConvertToEntrypointName | |||
| ) |
Definition at line 74 of file switches_unittests.cc.
References impeller::compiler::ConvertToEntrypointName().
| impeller::compiler::testing::TEST | ( | SwitchesTest | , |
| DefaultEntryPointIsMain | |||
| ) |
Definition at line 62 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 33 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 68 of file switches_unittests.cc.
References impeller::compiler::Switches::AreValid(), impeller::compiler::Switches::entry_point, and MakeSwitchesDesktopGL().
| impeller::compiler::testing::TEST | ( | SwitchesTest | , |
| EntryPointPrefixIsApplied | |||
| ) |
| impeller::compiler::testing::TEST | ( | SwitchesTest | , |
| ShaderBundleModeValid | |||
| ) |
Definition at line 85 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 56 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 50 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 131 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 90 of file compiler_unittests.cc.
References impeller::compiler::kGLSL, and impeller::compiler::kVertexShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| CanCompileComputeShader | |||
| ) |
Definition at line 111 of file compiler_unittests.cc.
References impeller::compiler::kComputeShader, and impeller::compiler::TargetPlatformIsMetal().
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| CanCompileHLSL | |||
| ) |
Definition at line 97 of file compiler_unittests.cc.
References impeller::compiler::kHLSL, and impeller::compiler::kVertexShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| CanCompileHLSLWithMultipleStages | |||
| ) |
Definition at line 102 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kHLSL, and impeller::compiler::kVertexShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| MustFailDueToExceedingResourcesLimit | |||
| ) |
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| MustFailDueToMultipleLocationPerStructMember | |||
| ) |
Definition at line 126 of file compiler_unittests.cc.
| impeller::compiler::testing::TEST_P | ( | CompilerTest | , |
| UniformsHaveBindingAndSet | |||
| ) |
Definition at line 335 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kSkSL, and impeller::compiler::kVertexShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestRuntime | , |
| Mat2Reflection | |||
| ) |
Definition at line 471 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kGLSL, and impeller::compiler::kSkSL.
| impeller::compiler::testing::TEST_P | ( | CompilerTestRuntime | , |
| PositionedUniformsAppearInJson | |||
| ) |
Definition at line 281 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kGLSL, and impeller::compiler::kRuntimeStageVulkan.
| impeller::compiler::testing::TEST_P | ( | CompilerTestRuntime | , |
| UniformsAppearInJson | |||
| ) |
Definition at line 229 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader, impeller::compiler::kGLSL, and impeller::compiler::kRuntimeStageVulkan.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| CanCompileStructs | |||
| ) |
Definition at line 378 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| CompilesWithValidArrayInitialization | |||
| ) |
Definition at line 465 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| FailsToCompileDueToArrayAssignment | |||
| ) |
Definition at line 403 of file compiler_unittests.cc.
References impeller::compiler::Compiler::GetErrorMessages(), impeller::compiler::Compiler::GetVerboseErrorMessages(), and impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| FailsToCompileDueToArrayInitializerWithConstants | |||
| ) |
Definition at line 383 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| FailsToCompileDueToArrayInitializerWithVariables | |||
| ) |
Definition at line 393 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestSkSL | , |
| SkSLTextureLookUpOrderOfOperations | |||
| ) |
Definition at line 364 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| impeller::compiler::testing::TEST_P | ( | CompilerTestUnknownPlatform | , |
| MustFailDueToUnknownPlatform | |||
| ) |
Definition at line 514 of file compiler_unittests.cc.
References impeller::compiler::kFragmentShader.
| 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().