MaterialX 1.38.2
NumLightsNodeGlsl.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_NUMLIGHTSNODEGLSL_H
7#define MATERIALX_NUMLIGHTSNODEGLSL_H
8
10
11namespace MaterialX
12{
13
16{
17public:
19
20 static ShaderNodeImplPtr create();
21
22 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
23
24 void emitFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
25};
26
27} // namespace MaterialX
28
29#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
Base class for common GLSL node implementations.
Definition: GlslShaderGenerator.h:93
Utility node for getting number of active lights for GLSL.
Definition: NumLightsNodeGlsl.h:16
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.
Definition: NumLightsNodeGlsl.cpp:36
void createVariables(const ShaderNode &node, GenContext &context, Shader &shader) const override
Create shader variables needed for the implementation of this node (e.g.
Definition: NumLightsNodeGlsl.cpp:28
Class containing all data needed during shader generation.
Definition: Shader.h:34
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