MaterialX 1.38.2
HwImageNode.h
1//
2// TM & (c) 2019 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3// All rights reserved. See LICENSE.txt for license.
4//
5
6#ifndef MATERIALX_HWIMAGECODENODE_H
7#define MATERIALX_HWIMAGECODENODE_H
8
9#include <MaterialXGenShader/Nodes/HwSourceCodeNode.h>
10
11namespace MaterialX
12{
13
15class MX_GENSHADER_API HwImageNode : public HwSourceCodeNode
16{
17public:
18 static ShaderNodeImplPtr create();
19
20 void addInputs(ShaderNode& node, GenContext& context) const override;
21 void setValues(const Node& node, ShaderNode& shaderNode, GenContext& context) const override;
22};
23
24} // namespace MaterialX
25
26#endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
A context class for shader generation.
Definition: GenContext.h:27
Extending the HwSourceCodeNode with requirements for image nodes.
Definition: HwImageNode.h:16
Extending the SourceCodeNode with requirements for HW.
Definition: HwSourceCodeNode.h:16
A node element within a NodeGraph or Document.
Definition: Node.h:54
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326