Nameless Engine
|
Public Attributes | |
std::unordered_map< std::string, std::shared_ptr< ShaderPack > > | compiledShaders |
std::vector< std::string > | vShadersToBeRemoved |
Internal shader data.
std::unordered_map<std::string, std::shared_ptr<ShaderPack> > ne::ShaderManager::ShaderData::compiledShaders |
Map of compiled (added) shaders.
Storing shared pointer for each pack here instead of just reading from disk, creating a new shared pointer, giving shared pointer and forgetting about it to make sure there's not going to be multiple copies of one shader.
std::vector<std::string> ne::ShaderManager::ShaderData::vShadersToBeRemoved |
Array of shader names marked to be removed from compiledShaders when they are no longer used.