MaterialX 1.38.10
Loading...
Searching...
No Matches
Material.h
Go to the documentation of this file.
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_MATERIAL_H
7#define MATERIALX_MATERIAL_H
8
11
13
14#include <MaterialXCore/Node.h>
15
16MATERIALX_NAMESPACE_BEGIN
17
24MX_CORE_API vector<NodePtr> getShaderNodes(NodePtr materialNode,
25 const string& nodeType = SURFACE_SHADER_TYPE_STRING,
26 const string& target = EMPTY_STRING);
27
29MX_CORE_API vector<OutputPtr> getConnectedOutputs(NodePtr node);
30
31MATERIALX_NAMESPACE_END
32
33#endif
MATERIALX_NAMESPACE_BEGIN MX_CORE_API vector< NodePtr > getShaderNodes(NodePtr materialNode, const string &nodeType=SURFACE_SHADER_TYPE_STRING, const string &target=EMPTY_STRING)
Return a vector of all shader nodes connected to the given material node's inputs,...
Definition: Material.cpp:10
MX_CORE_API vector< OutputPtr > getConnectedOutputs(NodePtr node)
Return a vector of all outputs connected to the given node's inputs.
Definition: Material.cpp:121
Import and export declarations for the Core library.
Node element subclasses.
shared_ptr< Node > NodePtr
A shared pointer to a Node.
Definition: Node.h:24