#include <ShaderManager.h>
Definition at line 18 of file ShaderManager.h.
◆ ~ShaderManager()
| hellfire::ShaderManager::~ShaderManager |
( |
| ) |
|
|
inline |
◆ add_automatic_defines()
| void hellfire::ShaderManager::add_automatic_defines |
( |
const Material & |
material, |
|
|
std::unordered_set< std::string > & |
defines |
|
) |
| |
◆ clean_shader_content()
| std::string hellfire::ShaderManager::clean_shader_content |
( |
const std::string & |
content, |
|
|
const std::string & |
filepath |
|
) |
| |
◆ clear_cache()
| void hellfire::ShaderManager::clear_cache |
( |
| ) |
|
◆ compile_shader_program()
| uint32_t hellfire::ShaderManager::compile_shader_program |
( |
const std::string & |
vertex_source, |
|
|
const std::string & |
fragment_source |
|
) |
| |
|
private |
◆ get_all_shader_ids()
| std::vector< uint32_t > hellfire::ShaderManager::get_all_shader_ids |
( |
| ) |
const |
◆ get_directory_from_path()
| std::string hellfire::ShaderManager::get_directory_from_path |
( |
const std::string & |
file_path | ) |
|
|
private |
◆ get_shader()
| uint32_t hellfire::ShaderManager::get_shader |
( |
const std::string & |
key | ) |
const |
◆ get_shader_for_material()
| uint32_t hellfire::ShaderManager::get_shader_for_material |
( |
Material & |
material | ) |
|
◆ has_shader()
| bool hellfire::ShaderManager::has_shader |
( |
const std::string & |
key | ) |
const |
|
inline |
◆ load_include_file()
| std::string hellfire::ShaderManager::load_include_file |
( |
const std::string & |
path, |
|
|
const std::string & |
base_path |
|
) |
| |
|
private |
◆ load_shader()
| uint32_t hellfire::ShaderManager::load_shader |
( |
const ShaderVariant & |
variant | ) |
|
◆ load_shader_file()
| std::string hellfire::ShaderManager::load_shader_file |
( |
const std::string & |
path | ) |
|
|
private |
◆ load_shader_from_files()
| uint32_t hellfire::ShaderManager::load_shader_from_files |
( |
const std::string & |
vertex_path, |
|
|
const std::string & |
fragment_path |
|
) |
| |
◆ process_defines()
| std::string hellfire::ShaderManager::process_defines |
( |
const std::string & |
source, |
|
|
const std::unordered_set< std::string > & |
defines |
|
) |
| |
|
private |
◆ process_includes()
| std::string hellfire::ShaderManager::process_includes |
( |
const std::string & |
source, |
|
|
const std::string & |
base_path = "shaders/" |
|
) |
| |
|
private |
◆ trim()
| std::string hellfire::ShaderManager::trim |
( |
const std::string & |
str | ) |
|
|
private |
◆ Application
◆ compiled_shaders_
| std::unordered_map<std::string, uint32_t> hellfire::ShaderManager::compiled_shaders_ |
|
private |
◆ include_cache_
| std::unordered_map<std::string, std::string> hellfire::ShaderManager::include_cache_ |
|
private |
The documentation for this class was generated from the following files: