| 1190 | } |
| 1191 | |
| 1192 | void DumpSummaryGPU(Printer &p, AppGpu &gpu) { |
| 1193 | ObjectWrapper obj(p, "GPU" + std::to_string(gpu.id)); |
| 1194 | p.SetMinKeyWidth(18); |
| 1195 | auto props = gpu.GetDeviceProperties(); |
| 1196 | p.PrintKeyValue("apiVersion", APIVersion(props.apiVersion)); |
| 1197 | if (gpu.found_driver_props) { |
| 1198 | p.PrintKeyString("driverVersion", gpu.GetDriverVersionString()); |
| 1199 | } else { |
| 1200 | p.PrintKeyValue("driverVersion", props.driverVersion); |
| 1201 | } |
| 1202 | p.PrintKeyString("vendorID", to_hex_str(props.vendorID)); |
| 1203 | p.PrintKeyString("deviceID", to_hex_str(props.deviceID)); |
| 1204 | p.PrintKeyString("deviceType", VkPhysicalDeviceTypeString(props.deviceType)); |
| 1205 | p.PrintKeyString("deviceName", props.deviceName); |
| 1206 | |
| 1207 | if (gpu.found_driver_props) { |
| 1208 | DumpVkDriverId(p, "driverID", gpu.driverID); |
| 1209 | p.PrintKeyString("driverName", gpu.driverName); |
| 1210 | p.PrintKeyString("driverInfo", gpu.driverInfo); |
| 1211 | p.PrintKeyValue("conformanceVersion", gpu.conformanceVersion); |
| 1212 | } |
| 1213 | if (gpu.found_device_id_props) { |
| 1214 | p.PrintKeyValue("deviceUUID", gpu.deviceUUID); |
| 1215 | p.PrintKeyValue("driverUUID", gpu.driverUUID); |
| 1216 | } |
| 1217 | } |
| 1218 | |
| 1219 | // ============ Printing Logic ============= // |
| 1220 |
no test coverage detected