MaterialX 1.39.1
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
void setValues(const Node &node, ShaderNode &shaderNode, GenContext &context) const override
Set values for additional inputs on a node.
void addInputs(ShaderNode &node, GenContext &context) const override
Add additional inputs on a node.
A node element within a NodeGraph or Document.
Definition: Node.h:53
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:320
Implemention for a node using data-driven static source code.
Definition: SourceCodeNode.h:20