MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / isDeviceSuitable

Method isDeviceSuitable

src/Renderer/vkRenderer.cpp:969–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967}
968
969bool vkRenderer::isDeviceSuitable(VkPhysicalDevice device) {
970 QueueFamilyIndices indices = findQueueFamilies(device);
971
972 bool extensionsSupported = checkDeviceExtensionSupport(device);
973
974 bool swapChainAdequate = false;
975 if (extensionsSupported) {
976 SwapChainSupportDetails swapChainSupport = querySwapChainSupport(device);
977 swapChainAdequate = !swapChainSupport.formats.empty() && !swapChainSupport.presentModes.empty();
978 }
979
980 return indices.isComplete() && extensionsSupported && swapChainAdequate;
981}
982
983bool vkRenderer::checkDeviceExtensionSupport(VkPhysicalDevice device) {
984 uint32_t extensionCount;

Callers

nothing calls this directly

Calls 1

isCompleteMethod · 0.80

Tested by

no test coverage detected