Loading...
Searching...
No Matches
HgiShaderGenerator Class Referenceabstract

Base class for shader function generation Given a descriptor, converts glslfx domain language to concrete shader languages. More...

#include <shaderGenerator.h>

Public Member Functions

HGI_API void Execute ()
 
HGI_API const char * GetGeneratedShaderCode () const
 

Protected Member Functions

HGI_API HgiShaderGenerator (const HgiShaderFunctionDesc &descriptor)
 
virtual HGI_API void _Execute (std::ostream &ss)=0
 
HGI_API const char * _GetShaderCodeDeclarations () const
 
HGI_API const char * _GetShaderCode () const
 
HGI_API HgiShaderStage _GetShaderStage () const
 

Detailed Description

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.


The documentation for this class was generated from the following file: