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

Method TextureLoaded

src/engine/TextureCache.cpp:474–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void TextureCache::TextureLoaded(std::shared_ptr<TextureData> texture)
475{
476 std::lock_guard<std::mutex> guard(m_TexturesToFinalizeMutex);
477
478 if (texture->mimeType.empty())
479 log::message(m_InfoLogSeverity, "Loaded %d x %d, %d bpp: %s", texture->width, texture->height,
480 texture->originalBitsPerPixel, texture->path.c_str());
481 else
482 log::message(m_InfoLogSeverity, "Loaded %d x %d, %d bpp: %s (%s)", texture->width, texture->height,
483 texture->originalBitsPerPixel, texture->path.c_str(), texture->mimeType.c_str());
484}
485
486std::shared_ptr<LoadedTexture> TextureCache::LoadTextureFromFile(
487 const std::filesystem::path& path,

Callers

nothing calls this directly

Calls 2

messageFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected