SleakEngine
0.1.0
C++23 multi-backend game engine
Toggle main menu visibility
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
7
namespace
Sleak
{
8
namespace
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
13
class
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
OSDef.hpp
Sleak::Debug::ShaderHotReload
Definition
ShaderHotReload.hpp:13
Sleak::Debug::ShaderHotReload::AddSourceDirectory
static void AddSourceDirectory(const std::string &dir)
Watches a shader source folder. Later folders override earlier ones.
Definition
ShaderHotReload.cpp:222
Sleak::Debug::ShaderHotReload::Poll
static void Poll()
Rebuilds changed shaders. Called once per frame by Application.
Definition
ShaderHotReload.cpp:242
Sleak::Debug
Definition
ShaderHotReload.hpp:8
Sleak
Root namespace for everything the engine exposes.
Definition
Camera.hpp:10
include
public
Debug
ShaderHotReload.hpp
Generated on
for SleakEngine by
1.18.0