6#ifndef MATERIALX_COMPOUNDNODE_H
7#define MATERIALX_COMPOUNDNODE_H
13MATERIALX_NAMESPACE_BEGIN
36MATERIALX_NAMESPACE_END
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
Shader instance class created during shader generation.
shared_ptr< class ShaderGraph > ShaderGraphPtr
A shared pointer to a shader graph.
Definition: ShaderGraph.h:39
Base class for shader node implementations.
Compound node implementation.
Definition: CompoundNode.h:17
ShaderGraph * getGraph() const override
Return a pointer to the graph if this implementation is using a graph, or returns nullptr otherwise.
Definition: CompoundNode.h:29
A context class for shader generation.
Definition: GenContext.h:31
The base class for interface elements such as Node, NodeDef, and NodeGraph.
Definition: Interface.h:318
Class representing a graph (DAG) for shader generation.
Definition: ShaderGraph.h:44
Class containing all data needed during shader generation.
Definition: Shader.h:33
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326
Class handling the shader generation implementation for a node.
Definition: ShaderNodeImpl.h:31
virtual void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit the function call or inline source code for given node instance in the given context.
Definition: ShaderNodeImpl.cpp:57
virtual void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit function definition for the given node instance.
Definition: ShaderNodeImpl.cpp:53
virtual void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const
Create shader variables needed for the implementation of this node (e.g.
Definition: ShaderNodeImpl.cpp:49
virtual void initialize(const InterfaceElement &element, GenContext &context)
Initialize with the given implementation element.
Definition: ShaderNodeImpl.cpp:25
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139