Berserk
Classes | Public Member Functions | List of all members
ShaderCompiler Class Referencefinal

Responsible to compile shaders in engine .shader.xml format. More...

#include <ShaderCompiler.hpp>

Classes

struct  CompilationResult
 Compilation result. More...
 

Public Member Functions

BRK_API ShaderCompiler ()=default
 
BRK_API ~ShaderCompiler ()=default
 
BRK_API CompilationResult Compile (const String &filepath, const Ref< ShaderCompileOptions > &options)
 Compile shader with specified full path and options. More...
 

Detailed Description

Responsible to compile shaders in engine .shader.xml format.

Constructor & Destructor Documentation

◆ ShaderCompiler()

BRK_API ShaderCompiler::ShaderCompiler ( )
default

◆ ~ShaderCompiler()

BRK_API ShaderCompiler::~ShaderCompiler ( )
default

Member Function Documentation

◆ Compile()

BRK_NS_BEGIN ShaderCompiler::CompilationResult ShaderCompiler::Compile ( const String filepath,
const Ref< ShaderCompileOptions > &  options 
)

Compile shader with specified full path and options.

Note
Accepts shaders in .shader.xml format
Parameters
filepathFull file path to the shader file on disc
optionsOptions to compile with
Returns
Compilation result

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