Base class for shader function generation Given a descriptor, converts glslfx domain language to concrete shader languages. More...
Public Member Functions | |
HGI_API void | Execute (std::ostream &ss) |
Protected Member Functions | |
HGI_API | HgiShaderGenerator (const HgiShaderFunctionDesc &descriptor) |
virtual HGI_API void | _Execute (std::ostream &ss, const std::string &originalShaderCode)=0 |
HGI_API const std::string & | _GetOriginalShader () const |
HGI_API HgiShaderStage | _GetShaderStage () const |
HGI_API const std::string & | _GetVersion () const |
Base class for shader function generation Given a descriptor, converts glslfx domain language to concrete shader languages.
Can be extended with new types of code sections and specialized for different APIs. It's main role is to make GLSLFX a write once language, no matter the API
Definition at line 47 of file shaderGenerator.h.