| 879 | } |
| 880 | |
| 881 | void VulkanDeviceInfo::readProfiles() |
| 882 | { |
| 883 | #if !defined(DISABLE_PROFILES) |
| 884 | qInfo() << "Reading profiles"; |
| 885 | |
| 886 | std::vector<VpProfileProperties> availableProfiles{}; |
| 887 | uint32_t profilesCount; |
| 888 | if (vpGetProfiles(&profilesCount, nullptr) == VK_SUCCESS) { |
| 889 | availableProfiles.resize(profilesCount); |
| 890 | vpGetProfiles(&profilesCount, availableProfiles.data()); |
| 891 | } |
| 892 | |
| 893 | profiles.clear(); |
| 894 | for (VpProfileProperties& profile : availableProfiles) { |
| 895 | qInfo() << "Reading profile" << profile.profileName; |
| 896 | VkBool32 supported = VK_FALSE; |
| 897 | vpGetPhysicalDeviceProfileSupport(vulkanContext.instance, device, &profile, &supported); |
| 898 | VulkanProfileInfo profileInfo{}; |
| 899 | profileInfo.profileName = profile.profileName; |
| 900 | profileInfo.specVersion = profile.specVersion; |
| 901 | profileInfo.supported = supported; |
| 902 | profiles.push_back(profileInfo); |
| 903 | } |
| 904 | #else |
| 905 | qInfo() << "Profiles disabled at build time"; |
| 906 | #endif |
| 907 | } |
| 908 | |
| 909 | QJsonObject VulkanDeviceInfo::toJson(QString submitter, QString comment) |
| 910 | { |