| 1106 | #endif // defined(VK_ENABLE_BETA_EXTENSIONS) |
| 1107 | } |
| 1108 | void PrintProfileBaseInfo(Printer &p, const std::string &device_name, uint32_t apiVersion, const std::string &device_label, |
| 1109 | const std::vector<std::string> &capabilities) { |
| 1110 | ObjectWrapper vk_info(p, device_name); |
| 1111 | p.PrintKeyValue("version", 1); |
| 1112 | p.PrintKeyString("api-version", APIVersion(apiVersion).str()); |
| 1113 | p.PrintKeyString("label", device_label); |
| 1114 | p.PrintKeyString("description", std::string("Exported from ") + APP_SHORT_NAME); |
| 1115 | { |
| 1116 | ObjectWrapper contributors(p, "contributors"); |
| 1117 | } |
| 1118 | { |
| 1119 | ArrayWrapper contributors(p, "history"); |
| 1120 | ObjectWrapper element(p, ""); |
| 1121 | p.PrintKeyValue("revision", 1); |
| 1122 | std::time_t t = std::time(0); // get time now |
| 1123 | std::tm *now = std::localtime(&t); |
| 1124 | std::string date = |
| 1125 | std::to_string(now->tm_year + 1900) + '-' + std::to_string(now->tm_mon + 1) + '-' + std::to_string(now->tm_mday); |
| 1126 | p.PrintKeyString("date", date); |
| 1127 | p.PrintKeyString("author", std::string("Automated export from ") + APP_SHORT_NAME); |
| 1128 | p.PrintKeyString("comment", ""); |
| 1129 | } |
| 1130 | ArrayWrapper contributors(p, "capabilities"); |
| 1131 | for (const auto &str : capabilities) p.PrintString(str); |
| 1132 | } |
| 1133 | |
| 1134 | // Prints profiles section of profiles schema |
| 1135 | void DumpGpuProfileInfo(Printer &p, AppGpu &gpu) { |
no test coverage detected