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

Function DumpGpuProfileInfo

vulkaninfo/vulkaninfo.cpp:1135–1154  ·  view source on GitHub ↗

Prints profiles section of profiles schema

Source from the content-addressed store, hash-verified

1133
1134// Prints profiles section of profiles schema
1135void DumpGpuProfileInfo(Printer &p, AppGpu &gpu) {
1136 ObjectWrapper profiles(p, "profiles");
1137
1138 std::string device_label = std::string(gpu.props.deviceName) + " driver " + gpu.GetDriverVersionString();
1139 std::string device_name =
1140 std::string("VP_" APP_UPPER_CASE_NAME "_") + std::string(gpu.props.deviceName) + "_" + gpu.GetDriverVersionString();
1141 ;
1142 for (auto &c : device_name) {
1143 if (c == ' ' || c == '.') c = '_';
1144 }
1145 PrintProfileBaseInfo(p, device_name, gpu.props.apiVersion, device_label, {"device"});
1146#if defined(VK_ENABLE_BETA_EXTENSIONS)
1147 if (gpu.CheckPhysicalDeviceExtensionIncluded(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME) &&
1148 (gpu.inst.CheckExtensionEnabled(VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME) ||
1149 gpu.inst.api_version >= VK_API_VERSION_1_1)) {
1150 PrintProfileBaseInfo(p, device_name + "_portability_subset", gpu.props.apiVersion, device_label + " subset",
1151 {"device", "macos-specific"});
1152 }
1153#endif // defined(VK_ENABLE_BETA_EXTENSIONS)
1154}
1155
1156// Print summary of system
1157void DumpSummaryInstance(Printer &p, AppInstance &inst) {

Callers 1

RunPrinterFunction · 0.85

Calls 2

PrintProfileBaseInfoFunction · 0.85
CheckExtensionEnabledMethod · 0.80

Tested by

no test coverage detected