SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ~Material()

Spices::Material::~Material ( )
virtual

Destructor Function.

UnLoad ShaderModule.

UnLoad ShaderModule.

Definition at line 33 of file Material.cpp.

34 {
36
40 for (auto& pair : m_Shaders)
41 {
42 for (int i = 0; i < pair.second.size(); i++)
43 {
44 std::stringstream ss;
45 ss << pair.first << "." << pair.second[i];
46
48 }
49 }
50
51 }
#define SPICES_PROFILE_ZONE
std::unordered_map< std::string, std::vector< std::string > > m_Shaders
Shader path Key: shader usage, Value: shader file name.
Definition Material.h:212
static void UnLoad(const std::string &path)
UnLoad a resource by path.