Berserk
|
Class for loading and importing engine shaders. More...
#include <ShaderManager.hpp>
Public Types | |
using | ArchetypePtr = std::shared_ptr< ShaderArchetype > |
Public Member Functions | |
BRK_API | ShaderManager () |
BRK_API | ~ShaderManager ()=default |
BRK_API Ref< const Shader > | Load (const String &filepath, const Ref< ShaderCompileOptions > &options) |
Attempts to load shader with specified filepath and defines set. More... | |
BRK_API bool | IsRegistered (const StringName &archetype) const |
BRK_API void | RegisterArchetype (ArchetypePtr archetypePtr) |
BRK_API ArchetypePtr | FindArchetype (const StringName &archetype) const |
Class for loading and importing engine shaders.
using ShaderManager::ArchetypePtr = std::shared_ptr<ShaderArchetype> |
BRK_NS_BEGIN ShaderManager::ShaderManager | ( | ) |
|
default |
ShaderManager::ArchetypePtr ShaderManager::FindArchetype | ( | const StringName & | archetype | ) | const |
bool ShaderManager::IsRegistered | ( | const StringName & | archetype | ) | const |
Ref< const Shader > ShaderManager::Load | ( | const String & | filepath, |
const Ref< ShaderCompileOptions > & | options | ||
) |
Attempts to load shader with specified filepath and defines set.
void ShaderManager::RegisterArchetype | ( | ArchetypePtr | archetypePtr | ) |