SleakEngine 0.1.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
ShaderHotReload.hpp
Go to the documentation of this file.
1#ifndef _SHADER_HOT_RELOAD_HPP_
2#define _SHADER_HOT_RELOAD_HPP_
3
4#include <Core/OSDef.hpp>
5#include <string>
6
7namespace Sleak {
8namespace Debug {
9
10/// Recompiles and reloads shaders when their source files are saved.
11/// Debug builds only; every call is a no-op in Release.
12/// @ingroup debug
13class ENGINE_API ShaderHotReload {
14 public:
15 /// Watches a shader source folder. Later folders override earlier ones.
16 static void AddSourceDirectory(const std::string& dir);
17
18 /// Rebuilds changed shaders. Called once per frame by Application.
19 static void Poll();
20};
21
22} // namespace Debug
23} // namespace Sleak
24
25#endif
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.
Root namespace for everything the engine exposes.
Definition Camera.hpp:10