MaterialX 1.39.1
Loading...
Searching...
No Matches
NumLightsNodeGlsl.h
1//
2// Copyright Contributors to the MaterialX Project
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#ifndef MATERIALX_NUMLIGHTSNODEGLSL_H
7#define MATERIALX_NUMLIGHTSNODEGLSL_H
8
10
11MATERIALX_NAMESPACE_BEGIN
12
14class MX_GENGLSL_API NumLightsNodeGlsl : public GlslImplementation
15{
16 public:
18
19 static ShaderNodeImplPtr create();
20
21 void createVariables(const ShaderNode& node, GenContext& context, Shader& shader) const override;
22
23 void emitFunctionDefinition(const ShaderNode& node, GenContext& context, ShaderStage& stage) const override;
24};
25
26MATERIALX_NAMESPACE_END
27
28#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:31
Base class for common GLSL node implementations.
Definition: GlslShaderGenerator.h:93
Utility node for getting number of active lights for GLSL.
Definition: NumLightsNodeGlsl.h:15
void emitFunctionDefinition(const ShaderNode &node, GenContext &context, ShaderStage &stage) const override
Emit function definition for the given node instance.
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
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