5 std::unordered_map<std::string, std::shared_ptr<Model>> modelCache;
7 for (
const auto &entry : std::filesystem::directory_iterator(folderPath)) {
8 if (entry.is_regular_file()) {
10 const std::string &filepath = entry.path().string();
11 modelCache[filepath] = create(device, filepath);