Nameless Engine
Loading...
Searching...
No Matches
ne::ShaderManager::ShaderData Struct Reference

Public Attributes

std::unordered_map< std::string, std::shared_ptr< ShaderPack > > compiledShaders
 
std::vector< std::string > vShadersToBeRemoved
 

Detailed Description

Internal shader data.

Member Data Documentation

◆ compiledShaders

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.

◆ vShadersToBeRemoved

std::vector<std::string> ne::ShaderManager::ShaderData::vShadersToBeRemoved

Array of shader names marked to be removed from compiledShaders when they are no longer used.


The documentation for this struct was generated from the following file: