MCPcopy Create free account
hub / github.com/SaschaWillems/VulkanCapsViewer / readProfiles

Method readProfiles

vulkanDeviceInfo.cpp:881–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

879}
880
881void 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
909QJsonObject VulkanDeviceInfo::toJson(QString submitter, QString comment)
910{

Callers 1

getGPUinfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected