Kemena3D
Loading...
Searching...
No Matches
kemena::kShaderCompiler Class Reference

Compiles a kShaderGraph into combined GLSL source. More...

#include <kshadernode.h>

Static Public Member Functions

static kShaderCompileResult compile (const kShaderGraph &graph)
 Compiles a shader graph into GLSL.

Detailed Description

Compiles a kShaderGraph into combined GLSL source.

Stateless front end: walks the graph from its output node, emitting GLSL expressions and statements, and reports the result via kShaderCompileResult.

Member Function Documentation

◆ compile()

kShaderCompileResult kemena::kShaderCompiler::compile ( const kShaderGraph & graph)
static

Compiles a shader graph into GLSL.

Parameters
graphGraph to compile.
Returns
Compilation result with generated source and detected inputs.

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