MaterialX 1.38.2
SwitchNode.h
1//
2// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3// All rights reserved. See LICENSE.txt for license.
4//
5
6#ifndef MATERIALX_SWITCHNODE_H
7#define MATERIALX_SWITCHNODE_H
8
10
11namespace MaterialX
12{
13
15class MX_GENSHADER_API SwitchNode : public ShaderNodeImpl
16{
17public:
18 static ShaderNodeImplPtr create();
19
20 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
21
22public:
23 static const StringVec INPUT_NAMES;
24};
25
26} // namespace MaterialX
27
28#endif
vector< string > StringVec
A vector of strings.
Definition: Library.h:56
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
Base class for shader node implementations.
A context class for shader generation.
Definition: GenContext.h:27
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:32
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:124
Switch node implementation.
Definition: SwitchNode.h:16