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

Method LoadModels

src/engine/Scene.cpp:211–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void Scene::LoadModels(
212 const Json::Value& modelList,
213 const std::filesystem::path& scenePath,
214 ThreadPool* threadPool)
215{
216 if (!modelList.isArray())
217 {
218 return;
219 }
220
221 m_Models.resize(modelList.size());
222 uint32_t index = 0;
223 for (const auto& model : modelList)
224 {
225 ++g_LoadingStats.ObjectsTotal;
226
227 std::filesystem::path fileName = scenePath / std::filesystem::path(model.asString());
228
229 LoadModelAsync(index, fileName, threadPool);
230
231 ++index;
232 }
233
234 if (threadPool)
235 threadPool->WaitForTasks();
236}
237
238void Scene::LoadSceneGraph(const Json::Value& nodeList, const std::shared_ptr<SceneGraphNode>& parent)
239{

Callers

nothing calls this directly

Calls 2

WaitForTasksMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected