HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ImageNodeMdl.h
Go to the documentation of this file.
1 //
2 // Copyright Contributors to the MaterialX Project
3 // SPDX-License-Identifier: Apache-2.0
4 //
5 
6 #ifndef MATERIALX_IMAGENODEMDL_H
7 #define MATERIALX_IMAGENODEMDL_H
8 
10 
11 #include "SourceCodeNodeMdl.h"
12 
14 
15 /// Image node implementation for MDL
17 {
18  using BASE = SourceCodeNodeMdl;
19 
20  public:
21  static const string FLIP_V; ///< the empty string ""
22 
23  static ShaderNodeImplPtr create();
24 
25  void addInputs(ShaderNode& node, GenContext& context) const override;
26 
27  bool isEditable(const ShaderInput& input) const override;
28 
29  void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
30 };
31 
33 
34 #endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
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...
#define MATERIALX_NAMESPACE_BEGIN
Definition: Generated.h:25
#define MX_GENMDL_API
Definition: Export.h:18
static ShaderNodeImplPtr create()
virtual bool isEditable(const ShaderInput &) const
static const string FLIP_V
the empty string ""
Definition: ImageNodeMdl.h:21
virtual void addInputs(ShaderNode &node, GenContext &context) const
Add additional inputs on a node.
Image node implementation for MDL.
Definition: ImageNodeMdl.h:16
#define MATERIALX_NAMESPACE_END
Definition: Generated.h:26