MaterialX 1.38.2
GeomPropValueNodeGlsl.h
1//
2// TM & (c) 2017 Lucasfilm Entertainment Company Ltd. and Lucasfilm Ltd.
3// All rights reserved. See LICENSE.txt for license.
4//
5
6#ifndef MATERIALX_GEOMPROPVALUENODEGLSL_H
7#define MATERIALX_GEOMPROPVALUENODEGLSL_H
8
10
11namespace MaterialX
12{
13
16{
17 public:
18 static ShaderNodeImplPtr create();
19
20 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
21
22 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
23
24 bool isEditable(const ShaderInput& /*input*/) const override { return false; }
25};
26
29{
30 public:
31 static ShaderNodeImplPtr create();
32
33 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
34
35 void emitFunctionCall(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
36};
37
38} // namespace MaterialX
39
40#endif
GLSL shader generator.
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
A context class for shader generation.
Definition: GenContext.h:27
GeomPropValue node non-implementation for GLSL.
Definition: GeomPropValueNodeGlsl.h:29
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.
Definition: GeomPropValueNodeGlsl.cpp:87
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
Definition: GeomPropValueNodeGlsl.cpp:74
GeomPropValue node implementation for GLSL.
Definition: GeomPropValueNodeGlsl.h:16
bool isEditable(const ShaderInput &) const override
Returns true if an input is editable by users.
Definition: GeomPropValueNodeGlsl.h:24
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.
Definition: GeomPropValueNodeGlsl.cpp:35
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
Definition: GeomPropValueNodeGlsl.cpp:18
Base class for common GLSL node implementations.
Definition: GlslShaderGenerator.h:93
Class containing all data needed during shader generation.
Definition: Shader.h:34
An input on a ShaderNode.
Definition: ShaderNode.h:256
Class representing a node in the shader generation DAG.
Definition: ShaderNode.h:326
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:124