MaterialX 1.38.10
Loading...
Searching...
No Matches
HwImageNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_HWIMAGECODENODE_H
7#define MATERIALX_HWIMAGECODENODE_H
8
9#include <MaterialXGenShader/Nodes/SourceCodeNode.h>
10
11MATERIALX_NAMESPACE_BEGIN
12
14class MX_GENSHADER_API HwImageNode : public SourceCodeNode
15{
16 public:
17 static ShaderNodeImplPtr create();
18
19 void addInputs(ShaderNode& node, GenContext& context) const override;
20 void setValues(const Node& node, ShaderNode& shaderNode, GenContext& context) const override;
21};
22
23MATERIALX_NAMESPACE_END
24
25#endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
A context class for shader generation.
Definition: GenContext.h:31
Extending the SourceCodeNode with requirements for image nodes.
Definition: HwImageNode.h:15
A node element within a NodeGraph or Document.
Definition: Node.h:53
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326
virtual void setValues(const Node &node, ShaderNode &shaderNode, GenContext &context) const
Set values for additional inputs on a node.
Definition: ShaderNodeImpl.cpp:41
virtual void addInputs(ShaderNode &node, GenContext &context) const
Add additional inputs on a node.
Definition: ShaderNodeImpl.cpp:37
Implemention for a node using data-driven static source code.
Definition: SourceCodeNode.h:20