MaterialX 1.39.1
Loading...
Searching...
No Matches
ClosureSourceCodeNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_CLOSURESOURCECODENODE_H
7#define MATERIALX_CLOSURESOURCECODENODE_H
8
9#include <MaterialXGenShader/Nodes/SourceCodeNode.h>
10
11MATERIALX_NAMESPACE_BEGIN
12
15class MX_GENSHADER_API ClosureSourceCodeNode : public SourceCodeNode
16{
17 public:
18 static ShaderNodeImplPtr create();
19
20 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
21};
22
23MATERIALX_NAMESPACE_END
24
25#endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
Implemention for a closure node using data-driven static source code.
Definition: ClosureSourceCodeNode.h:16
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.
A context class for shader generation.
Definition: GenContext.h:31
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:320
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139
Implemention for a node using data-driven static source code.
Definition: SourceCodeNode.h:20