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
11
MATERIALX_NAMESPACE_BEGIN
12
14
class
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
23
MATERIALX_NAMESPACE_END
24
25
#endif
ShaderNodeImplPtr
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition:
Library.h:40
GenContext
A context class for shader generation.
Definition:
GenContext.h:31
HwImageNode
Extending the SourceCodeNode with requirements for image nodes.
Definition:
HwImageNode.h:15
HwImageNode::setValues
void setValues(const Node &node, ShaderNode &shaderNode, GenContext &context) const override
Set values for additional inputs on a node.
HwImageNode::addInputs
void addInputs(ShaderNode &node, GenContext &context) const override
Add additional inputs on a node.
Node
A node element within a NodeGraph or Document.
Definition:
Node.h:53
ShaderNode
Class representing a node in the shader generation DAG.
Definition:
ShaderNode.h:320
SourceCodeNode
Implemention for a node using data-driven static source code.
Definition:
SourceCodeNode.h:20
source
MaterialXGenShader
Nodes
HwImageNode.h
Generated by
1.9.5