#include "material.h"
#include "node_graph.h"
#include "node_item.h"
#include "DNA_node_types.h"
#include "CLG_log.h"
Go to the source code of this file.
◆ NODE_SHADER_MATERIALX_BEGIN
| #define NODE_SHADER_MATERIALX_BEGIN |
Value:class MaterialXNodeParser : public materialx::NodeParser { \
public: \
using materialx::NodeParser::NodeParser; \
materialx::NodeItem
compute()
override; \
}; \
\
materialx::NodeItem MaterialXNodeParser::compute() \
{ \
using NodeItem = materialx::NodeItem;
Definition at line 102 of file node_parser.h.
◆ NODE_SHADER_MATERIALX_END
| #define NODE_SHADER_MATERIALX_END |
Value:} \
\
static void node_shader_materialx(
void *data,
struct bNode *
node,
struct bNodeSocket *
out) \
{ \
materialx::NodeParserData *d = reinterpret_cast<materialx::NodeParserData *>(data); \
d->result = \
MaterialXNodeParser(d->graph,
node,
out, d->to_type, d->group_parser).compute_full(); \
}
Definition at line 113 of file node_parser.h.