DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::ShaderCompiler Class Reference

Translates HLSL shaders to the GLSL an OpenGL device runs, through Slang. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/ShaderCompiler.h>

Static Public Member Functions

static bool Compile (const ShaderCompileRequest &request, ShaderStageText &out, std::string &errors, std::string *warnings=nullptr)
 Compiles one stage.
static bool IsAvailable (std::string *why=nullptr)
 Whether Slang is here and loads. False with why when not.

Detailed Description

Translates HLSL shaders to the GLSL an OpenGL device runs, through Slang.

Member Function Documentation

◆ Compile()

bool DekiEditor::ShaderCompiler::Compile ( const ShaderCompileRequest & request,
ShaderStageText & out,
std::string & errors,
std::string * warnings = nullptr )
static

Compiles one stage.

False with errors (Slang's messages, each naming the file, line and column) when Slang rejects it, or when it uses something OpenGL ES 3.0 cannot run. What Slang warns about when it compiles goes to warnings.

◆ IsAvailable()

bool DekiEditor::ShaderCompiler::IsAvailable ( std::string * why = nullptr)
static

Whether Slang is here and loads. False with why when not.


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