{
const auto& fileNames = GetParam();
const size_t fileCount = fileNames.size();
- const EShMessages controls = DeriveOptions(
- Source::GLSL, Semantics::OpenGL, Target::AST);
+ const EShMessages controls = DeriveOptions(Source::GLSL, Semantics::OpenGL, Target::AST);
GlslangResult result;
// Compile each input shader file.
std::vector<std::unique_ptr<glslang::TShader>> shaders;
for (size_t i = 0; i < fileCount; ++i) {
std::string contents;
- tryLoadFile(GLSLANG_TEST_DIRECTORY "/" + fileNames[i],
+ tryLoadFile(GlobalTestSettings.testRoot + "/" + fileNames[i],
"input", &contents);
shaders.emplace_back(
new glslang::TShader(GetShaderStage(GetSuffix(fileNames[i]))));
// Check with expected results.
const std::string expectedOutputFname =
- GLSLANG_TEST_DIRECTORY "/baseResults/" + fileNames.front() + ".out";
+ GlobalTestSettings.testRoot + "/baseResults/" + fileNames.front() + ".out";
std::string expectedOutput;
tryLoadFile(expectedOutputFname, "expected output", &expectedOutput);