MaterialX 1.39.1
Loading...
Searching...
No Matches
ClosureMixNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_CLOSUREMIXNODE_H
7#define MATERIALX_CLOSUREMIXNODE_H
8
10
11MATERIALX_NAMESPACE_BEGIN
12
14class MX_GENSHADER_API ClosureMixNode : public ShaderNodeImpl
15{
16 public:
17 static ShaderNodeImplPtr create();
18
19 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
20
22 static const string FG;
23 static const string BG;
24 static const string MIX;
25};
26
27MATERIALX_NAMESPACE_END
28
29#endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
Base class for shader node implementations.
Closure mix node implementation.
Definition: ClosureMixNode.h:15
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 const string FG
String constants.
Definition: ClosureMixNode.h:22
A context class for shader generation.
Definition: GenContext.h:31
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