Add support for testing file-based HLSL source code in GTest.
This commit is contained in:
parent
4678ca9dac
commit
d6f0ed2c81
8 changed files with 142 additions and 38 deletions
|
|
@ -44,7 +44,8 @@ using CompileToAstTest = GlslangTest<::testing::TestWithParam<std::string>>;
|
|||
TEST_P(CompileToAstTest, FromFile)
|
||||
{
|
||||
loadFileCompileAndCheck(GLSLANG_TEST_DIRECTORY, GetParam(),
|
||||
Semantics::OpenGL, Target::AST);
|
||||
Source::GLSL, Semantics::OpenGL,
|
||||
Target::AST);
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
|
|
@ -183,7 +184,7 @@ INSTANTIATE_TEST_CASE_P(
|
|||
"nonVulkan.frag",
|
||||
"spv.atomic.comp",
|
||||
})),
|
||||
FileNameAsCustomTestName
|
||||
FileNameAsCustomTestSuffix
|
||||
);
|
||||
// clang-format on
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue