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

Function LoadProfiles

vkconfig_core/path.cpp:650–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650static std::vector<std::string> LoadProfiles(const QJsonDocument& doc) {
651 assert(!doc.isNull() && !doc.isEmpty());
652
653 const QJsonObject& json_root_object = doc.object();
654 if (json_root_object.value("profiles") == QJsonValue::Undefined) {
655 return std::vector<std::string>();
656 }
657
658 return ConvertString(ReadObject(json_root_object, "profiles").keys());
659}
660
661std::vector<std::string> CollectProfileNamesFromFile(const Path& profile_path) {
662 if (profile_path.Empty()) {

Callers 1

Calls 2

ConvertStringFunction · 0.85
ReadObjectFunction · 0.85

Tested by

no test coverage detected