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
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.
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.
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
void initialize(const InterfaceElement &element, GenContext &context) override
Initialize with the given implementation element.
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
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:312
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:320
Class handling the shader generation implementation for a node.
Definition: ShaderNodeImpl.h:32
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139