SpiecsEngine
 
Loading...
Searching...
No Matches

◆ PushToTextureParams()

void Spices::Material::PushToTextureParams ( const std::string & name,
const TextureParam & texture )

Push item to ShaderPath.

Parameters
[in]nameitem name.
[in]texturetexture path.

Definition at line 101 of file Material.cpp.

102 {
104
105 std::unique_lock<std::mutex> lock(m_Mutex);
106
107 m_TextureParams.push_back(name, texture);
108 m_DefaultTextureParams.push_back(name, texture);
109 }
#define SPICES_PROFILE_ZONE
scl::linked_unordered_map< std::string, TextureParam > m_DefaultTextureParams
Definition Material.h:220
scl::linked_unordered_map< std::string, TextureParam > m_TextureParams
Texture parameters. Key: parameter name, Value: parameter value.
Definition Material.h:219
std::mutex m_Mutex
Mutex of this material.
Definition Material.h:257