6#ifndef MATERIALX_GLSLSHADERGENERATOR_H
7#define MATERIALX_GLSLSHADERGENERATOR_H
19using GlslShaderGeneratorPtr = shared_ptr<class GlslShaderGenerator>;
35 const string&
getTarget()
const override {
return TARGET; }
38 virtual const string&
getVersion()
const {
return VERSION; }
48 bool assignValue =
true)
const override;
51 virtual const string getVertexDataPrefix(
const VariableBlock& vertexData)
const;
76 virtual bool requiresLighting(
const ShaderGraph& graph)
const;
84 static void toVec4(
const TypeDesc* type,
string& variable);
95 const string& getTarget()
const override;
97 bool isEditable(
const ShaderInput& input)
const override;
114 static const string TO_SPACE;
115 static const string FROM_SPACE;
116 static const string WORLD;
117 static const string OBJECT;
118 static const string MODEL;
119 static const string INDEX;
120 static const string GEOMPROP;
shared_ptr< Element > ElementPtr
A shared pointer to an Element.
Definition: Element.h:31
Hardware shader generator base class.
shared_ptr< class HwResourceBindingContext > HwResourceBindingContextPtr
Shared pointer to a HwResourceBindingContext.
Definition: HwShaderGenerator.h:235
Macros for declaring imported and exported symbols.
shared_ptr< Shader > ShaderPtr
Shared pointer to a Shader.
Definition: Library.h:34
shared_ptr< ShaderNodeImpl > ShaderNodeImplPtr
Shared pointer to a ShaderNodeImpl.
Definition: Library.h:40
shared_ptr< ShaderGenerator > ShaderGeneratorPtr
Shared pointer to a ShaderGenerator.
Definition: Library.h:38
A context class for shader generation.
Definition: GenContext.h:27
Base class for common GLSL node implementations.
Definition: GlslShaderGenerator.h:93
static const string SPACE
Internal string constants.
Definition: GlslShaderGenerator.h:113
Base class for GLSL (OpenGL Shading Language) code generation.
Definition: GlslShaderGenerator.h:24
const string & getTarget() const override
Return a unique identifier for the target this generator is for.
Definition: GlslShaderGenerator.h:35
virtual const string & getVersion() const
Return the version string for the GLSL version this generator is for.
Definition: GlslShaderGenerator.h:38
vector< ShaderNodePtr > _lightSamplingNodes
Nodes used internally for light sampling.
Definition: GlslShaderGenerator.h:87
static const string TARGET
Unique identifier for this generator target.
Definition: GlslShaderGenerator.h:55
static const string VERSION
Version string for the generator target.
Definition: GlslShaderGenerator.h:58
Base class for shader generators targeting HW rendering.
Definition: HwShaderGenerator.h:356
A node graph element within a Document.
Definition: Node.h:316
Class representing a graph (DAG) for shader generation.
Definition: ShaderGraph.h:45
Class handling the shader generation implementation for a node.
Definition: ShaderNodeImpl.h:32
An input or output port on a ShaderNode.
Definition: ShaderNode.h:125
A shader stage, containing the state and resulting source code for the stage.
Definition: ShaderStage.h:124
A type descriptor for MaterialX data types.
Definition: TypeDesc.h:29
A block of variables in a shader stage.
Definition: ShaderStage.h:53