MaterialX 1.39.3
Loading...
Searching...
No Matches
HwGeomPropValueNode.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_HWGEOMPROPVALUENODE_H
7#define MATERIALX_HWGEOMPROPVALUENODE_H
8
10
11MATERIALX_NAMESPACE_BEGIN
12
14class MX_GENSHADER_API HwGeomPropValueNode : public HwImplementation
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 bool isEditable(const ShaderInput& /*input*/) const override { return false; }
24};
25
27class MX_GENSHADER_API HwGeomPropValueNodeAsUniform : public HwImplementation
28{
29 public:
30 static ShaderNodeImplPtr create();
31
32 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
33
34 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
35};
36
37MATERIALX_NAMESPACE_END
38
39#endif
Hardware shader generator base class.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition Library.h:39
A context class for shader generation.
Definition GenContext.h:30
GeomPropValue node non-implementation for Hw shader languages.
Definition HwGeomPropValueNode.h:28
void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit the function call or inline source code for given node instance in the given context.
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
GeomPropValue node implementation for Hw shader languages.
Definition HwGeomPropValueNode.h:15
bool isEditable(const ShaderInput &) const override
Returns true if an input is editable by users.
Definition HwGeomPropValueNode.h:23
void emitFunctionCall(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit the function call or inline source code for given node instance in the given context.
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
Class containing all data needed during shader generation.
Definition Shader.h:33
An input on a ShaderNode.
Definition ShaderNode.h:264
Class representing a node in the shader generation DAG.
Definition ShaderNode.h:320
A shader stage, containing the state and resulting source code for the stage.
Definition ShaderStage.h:139