MaterialX 1.38.10
Loading...
Searching...
No Matches
HwTexCoordNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_HWTEXCOORDNODE_H
7#define MATERIALX_HWTEXCOORDNODE_H
8
9#include <MaterialXGenShader/Nodes/SourceCodeNode.h>
10
11MATERIALX_NAMESPACE_BEGIN
12
14class MX_GENSHADER_API HwTexCoordNode : public ShaderNodeImpl
15{
16 public:
17 static ShaderNodeImplPtr create();
18
19 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
20
21 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
22
23 protected:
24 virtual string getIndex(const ShaderNode& node) const;
25
26 static string INDEX;
27};
28
29MATERIALX_NAMESPACE_END
30
31#endif
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
A context class for shader generation.
Definition: GenContext.h:31
Generic texture coordinate node for hardware languages.
Definition: HwTexCoordNode.h:15
Class containing all data needed during shader generation.
Definition: Shader.h:33
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326
Class handling the shader generation implementation for a node.
Definition: ShaderNodeImpl.h:31
virtual void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const
Emit the function call or inline source code for given node instance in the given context.
Definition: ShaderNodeImpl.cpp:57
virtual void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const
Create shader variables needed for the implementation of this node (e.g.
Definition: ShaderNodeImpl.cpp:49
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:139