|
SimpleGL
1.1.0
A framework for platform independent rendering
|
This class provides methods for managing shader modules. More...
#include <manager_vk.hpp>
Public Member Functions | |
| void | remove (std::string name) override |
| Removes and disposes a shader module from the storage. More... | |
| void | clear () override |
| Removes all shader modules and disposes them. More... | |
| ShaderModule * | loadShaderModule (std::string path, std::string name, ShaderStageBit stageBit) |
| Loads a shader module from a binary file and stores it. More... | |
Public Member Functions inherited from sgl::Manager< ShaderModule > | |
| ~Manager (void) | |
| Deletes a manager and disposes all managed objects. More... | |
| void | put (std::string name, ShaderModule *value) |
| Stores a object with specified name. More... | |
| ShaderModule * | get (std::string name) |
| Gets a managed object from the storage. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from sgl::Manager< ShaderModule > | |
| Manager (void) | |
| Initializes a new manager. More... | |
Protected Attributes inherited from sgl::Manager< ShaderModule > | |
| std::map< std::string, ShaderModule * > | objects |
| Contains the objects to manage. More... | |
This class provides methods for managing shader modules.
Definition at line 27 of file manager_vk.hpp.
|
overridevirtual |
Removes all shader modules and disposes them.
Reimplemented from sgl::Manager< ShaderModule >.
Definition at line 30 of file manager_vk.cpp.
| ShaderModule * sgl::ShaderModuleManager::loadShaderModule | ( | std::string | path, |
| std::string | name, | ||
| ShaderStageBit | stageBit | ||
| ) |
Loads a shader module from a binary file and stores it.
| path | File path to the shader module binary source. |
| name | The name of the shader module. |
| stageBit | The shader stage flag bit. Either VERTEX_BIT or FRAGMENT_BIT. |
Definition at line 41 of file manager_vk.cpp.
|
overridevirtual |
Removes and disposes a shader module from the storage.
| name | The name of the shader module. |
Reimplemented from sgl::Manager< ShaderModule >.
Definition at line 21 of file manager_vk.cpp.
1.8.11