| 92 | } |
| 93 | |
| 94 | void AssetResolver::addSearchPath(const std::filesystem::path& path, SearchPathPriority priority, AssetCategory category) |
| 95 | { |
| 96 | FALCOR_CHECK(path.is_absolute(), "Search path must be absolute."); |
| 97 | FALCOR_CHECK(category < AssetCategory::Count, "Invalid asset category."); |
| 98 | mSearchContexts[size_t(category)].addSearchPath(path, priority); |
| 99 | } |
| 100 | |
| 101 | AssetResolver& AssetResolver::getDefaultResolver() |
| 102 | { |