SpiecsEngine
 
Loading...
Searching...
No Matches

◆ UnRegistry()

void Spices::BindLessTextureManager::UnRegistry ( const std::string & name)
static

UnRegistry a texture from bind less texture descriptor set array index.

Definition at line 53 of file BindLessTextureManager.cpp.

54 {
56
57 std::unique_lock<std::mutex> lock(m_Mutex);
58
59 if (m_TextureIDMap.find(name) != m_TextureIDMap.end())
60 {
62 m_TextureIDMap.erase(name);
63 }
64 }
#define SPICES_PROFILE_ZONE
static std::unordered_map< uint32_t, std::string > m_TextureInfoMap
Hashmap of array index and "".
static std::mutex m_Mutex
Mutex of this BindLessTextureManager.
static std::unordered_map< std::string, uint32_t > m_TextureIDMap
Hashmap of texture path and array index.