SleakEngine 0.1.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::Debug::ShaderHotReload Class Reference

#include <ShaderHotReload.hpp>

Static Public Member Functions

static void AddSourceDirectory (const std::string &dir)
 Watches a shader source folder. Later folders override earlier ones.
static void Poll ()
 Rebuilds changed shaders. Called once per frame by Application.

Detailed Description

Recompiles and reloads shaders when their source files are saved. Debug builds only; every call is a no-op in Release.

Definition at line 13 of file ShaderHotReload.hpp.

Member Function Documentation

◆ AddSourceDirectory()

void Sleak::Debug::ShaderHotReload::AddSourceDirectory ( const std::string & dir)
static

Watches a shader source folder. Later folders override earlier ones.

Definition at line 222 of file ShaderHotReload.cpp.

◆ Poll()

void Sleak::Debug::ShaderHotReload::Poll ( )
static

Rebuilds changed shaders. Called once per frame by Application.

Definition at line 242 of file ShaderHotReload.cpp.