MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / DumpSummaryGPU

Function DumpSummaryGPU

vulkaninfo/vulkaninfo.cpp:1192–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1190}
1191
1192void 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

Callers 1

RunPrinterFunction · 0.85

Calls 7

APIVersionClass · 0.85
to_hex_strFunction · 0.85
DumpVkDriverIdFunction · 0.85
PrintKeyValueMethod · 0.80
PrintKeyStringMethod · 0.80
to_stringFunction · 0.70

Tested by

no test coverage detected