Skip to content

Commit 6029ef4

Browse files
authored
Fix image search path for Metal render test suite (AcademySoftwareFoundation#2667)
## Issue Fixes: AcademySoftwareFoundation#2664. where some tests would not find images in relative paths. ### Change Pass image search path to image handler search path for MSL test renderer.
1 parent 9aae5e8 commit 6029ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/MaterialXTest/MaterialXRenderMsl/RenderMsl.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ bool runRenderer(const std::string& shaderName,
165165
std::ostream& log,
166166
const GenShaderUtil::TestSuiteOptions& testOptions,
167167
RenderUtil::RenderProfileTimes& profileTimes,
168-
const mx::FileSearchPath& /*imageSearchPath*/,
168+
const mx::FileSearchPath& imageSearchPath,
169169
const std::string& outputPath,
170170
mx::ImageVec* imageVec)
171171
{
@@ -351,7 +351,7 @@ bool runRenderer(const std::string& shaderName,
351351

352352
{
353353
mx::ScopedTimer renderTimer(&profileTimes.languageTimes.renderTime);
354-
_renderer->getImageHandler()->setSearchPath(mx::getDefaultDataSearchPath());
354+
_renderer->getImageHandler()->setSearchPath(imageSearchPath);
355355
unsigned int width = (unsigned int) testOptions.renderSize[0] * supersampleFactor;
356356
unsigned int height = (unsigned int) testOptions.renderSize[1] * supersampleFactor;
357357
_renderer->setSize(width, height);

0 commit comments

Comments
 (0)