MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / LoadRegistrySoftwareLayers

Function LoadRegistrySoftwareLayers

vkconfig_core/registry.cpp:201–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201std::vector<Path> LoadRegistrySoftwareLayers(const char *path, LayerType type) {
202 std::vector<Path> result;
203 QSettings settings(path, QSettings::NativeFormat);
204 const QStringList &files = settings.allKeys();
205
206 for (int i = 0, n = files.size(); i < n; ++i) {
207 Path path(files[i].toStdString());
208
209 Path manifest_path = path.IsFile() ? path.AbsoluteDir() : path.AbsolutePath();
210
211 if (!manifest_path.Exists()) {
212 continue;
213 }
214
215 if (::Found(result, manifest_path)) {
216 continue;
217 }
218
219 result.push_back(manifest_path);
220 }
221
222 return result;
223}
224
225#endif // VKC_ENV == VKC_ENV_WIN32

Callers 2

GetImplicitLayerPathsFunction · 0.85
GetExplicitLayerPathsFunction · 0.85

Calls 5

FoundFunction · 0.85
IsFileMethod · 0.80
AbsoluteDirMethod · 0.80
AbsolutePathMethod · 0.80
ExistsMethod · 0.80

Tested by

no test coverage detected