6 #ifndef MATERIALX_SOURCECODEMDL_H
7 #define MATERIALX_SOURCECODEMDL_H
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
#define MATERIALX_NAMESPACE_BEGIN
virtual void resolveSourceCode(const InterfaceElement &element, GenContext &context)
Resolve the source file and read the source code during the initialization of the node...
void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit the function call or inline source code for given node instance in the given context...
static ShaderNodeImplPtr create()
void initialize(const InterfaceElement &element, GenContext &context) override
#define MATERIALX_NAMESPACE_END
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.