HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HgiShaderGenerator Class Referenceabstract

#include <shaderGenerator.h>

Public Member Functions

virtual HGI_API ~HgiShaderGenerator ()
 
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.

Constructor & Destructor Documentation

virtual HGI_API HgiShaderGenerator::~HgiShaderGenerator ( )
virtual
HGI_API HgiShaderGenerator::HgiShaderGenerator ( const HgiShaderFunctionDesc descriptor)
explicitprotected

Member Function Documentation

virtual HGI_API void HgiShaderGenerator::_Execute ( std::ostream &  ss)
protectedpure virtual
HGI_API const char* HgiShaderGenerator::_GetShaderCode ( ) const
protected
HGI_API const char* HgiShaderGenerator::_GetShaderCodeDeclarations ( ) const
protected
HGI_API HgiShaderStage HgiShaderGenerator::_GetShaderStage ( ) const
protected
HGI_API void HgiShaderGenerator::Execute ( )
HGI_API const char* HgiShaderGenerator::GetGeneratedShaderCode ( ) const

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