Skip to content

Commit

Permalink
Further Linux tests. OS/X fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
JGamache-autodesk committed Oct 24, 2024
1 parent 42f76c1 commit c712dda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions python/Scripts/generateshader.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ def main():
nodes = mx_gen_shader.findRenderableElements(doc)
if not nodes:
nodes = doc.getMaterialNodes()
if not nodes:
nodes = doc.getNodesOfType(mx.SURFACE_SHADER_TYPE_STRING)

pathPrefix = ''
if opts.outputPath and os.path.exists(opts.outputPath):
Expand Down
8 changes: 8 additions & 0 deletions source/MaterialXTest/MaterialXGenShader/GenShaderUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ void checkImplementations(mx::GenContext& context,
const auto alllibs = loadLibraries({ "libraries/targets", "libraries/stdlib", "libraries/pbrlib" }, searchPath, doc);
for (const auto& mxlib: alllibs) {
std::cout << "\t" << mxlib << std::endl;
if (mxlib.find("genglsl/mx39_pbrlib") != std::string::npos) {
std::cerr << "\tAlso in this folder:" << std::endl;
mx::FilePath path(mxlib);
for (const auto& file : path.getParentPath().getFilesInDirectory("glsl"))
{
std::cerr << "\t\t" << file.asString() << std::endl;
}
}
}

const std::string& target = shadergen.getTarget();
Expand Down

0 comments on commit c712dda

Please sign in to comment.