MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / UnloadTexture

Method UnloadTexture

src/engine/TextureCache.cpp:898–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896 }
897
898 bool TextureCache::UnloadTexture(const std::shared_ptr<LoadedTexture>& texture)
899 {
900 const auto& it = m_LoadedTextures.find(texture->path);
901
902 if (it == m_LoadedTextures.end())
903 return false;
904
905 m_LoadedTextures.erase(it);
906
907 return true;
908 }
909
910}

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected