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

Method ReadTextureFile

src/engine/TextureCache.cpp:169–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169std::shared_ptr<IBlob> TextureCache::ReadTextureFile(const std::filesystem::path& path) const
170{
171 auto fileData = m_fs->readFile(path);
172
173 if (!fileData)
174 log::message(m_ErrorLogSeverity, "Couldn't read texture file '%s'", path.generic_string().c_str());
175
176 return fileData;
177}
178
179std::shared_ptr<TextureData> TextureCache::CreateTextureData()
180{

Callers

nothing calls this directly

Calls 2

messageFunction · 0.85
readFileMethod · 0.45

Tested by

no test coverage detected