6 #ifndef MATERIALX_GLSLSHADERGENERATOR_H
7 #define MATERIALX_GLSLSHADERGENERATOR_H
36 return std::make_shared<GlslShaderGenerator>(typeSystem ? typeSystem :
TypeSystem::create());
44 const string&
getTarget()
const override {
return TARGET; }
47 virtual const string&
getVersion()
const {
return VERSION; }
51 bool assignValue =
true)
const override;
vector< ShaderNodePtr > _lightSamplingNodes
Nodes used internally for light sampling.
shared_ptr< class HwResourceBindingContext > HwResourceBindingContextPtr
Shared pointer to a HwResourceBindingContext.
#define MATERIALX_NAMESPACE_BEGIN
virtual void emitVariableDeclaration(const ShaderPort *variable, const string &qualifier, GenContext &context, ShaderStage &stage, bool assignValue=true) const
shared_ptr< class GlslShaderGenerator > GlslShaderGeneratorPtr
static const string TARGET
Unique identifier for this generator target.
static TypeSystemPtr create()
Create a new type system.
static ShaderGeneratorPtr create(TypeSystemPtr typeSystem=nullptr)
const string & getTarget() const override
Return a unique identifier for the target this generator is for.
shared_ptr< class TypeSystem > TypeSystemPtr
static const string VERSION
Version string for the generator target.
virtual const string & getVersion() const
Return the version string for the GLSL version this generator is for.
virtual string getVertexDataPrefix(const VariableBlock &vertexData) const =0
Determine the prefix of vertex data variables.
GLuint const GLchar * name
shared_ptr< Shader > ShaderPtr
Shared pointer to a Shader.
shared_ptr< Element > ElementPtr
A shared pointer to an Element.
#define MATERIALX_NAMESPACE_END
shared_ptr< ShaderGenerator > ShaderGeneratorPtr
Shared pointer to a ShaderGenerator.
virtual ShaderPtr generate(const string &, ElementPtr, GenContext &) const