cae  0.0.0
Cross-API graphics engine
Loading...
Searching...
No Matches
cae::IShaderFrontend Interface Referenceabstract

Interface for shaders frontend. More...

#include <IShaderFrontend.hpp>

+ Inheritance diagram for cae::IShaderFrontend:
+ Collaboration diagram for cae::IShaderFrontend:

Public Member Functions

 ~IShaderFrontend () override=default
 
virtual ShaderSourceType sourceType () const =0
 Get the source type this frontend handles.
 
virtual ShaderIRModule compile (const ShaderSourceDesc &desc)=0
 Compile shader source to intermediate representation.
 
- Public Member Functions inherited from utl::IPlugin
virtual ~IPlugin ()=default
 
virtual std::string getName () const =0
 Get the name of the plugin.
 
virtual PluginType getType () const =0
 Get the type of the plugin.
 
virtual PluginPlatform getPlatform () const =0
 Get the handled platform of the plugin.
 

Detailed Description

Interface for shaders frontend.

Definition at line 80 of file IShaderFrontend.hpp.

Constructor & Destructor Documentation

◆ ~IShaderFrontend()

cae::IShaderFrontend::~IShaderFrontend ( )
overridedefault

Member Function Documentation

◆ compile()

virtual ShaderIRModule cae::IShaderFrontend::compile ( const ShaderSourceDesc & desc)
pure virtual

Compile shader source to intermediate representation.

Parameters
descShader source description
Returns
Compiled shader intermediate representation module

Implemented in cae::GLSL.

◆ sourceType()

virtual ShaderSourceType cae::IShaderFrontend::sourceType ( ) const
pure virtual

Get the source type this frontend handles.

Returns
The source type this frontend handles

Implemented in cae::GLSL.


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