MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / chooseSwapPresentMode

Method chooseSwapPresentMode

code/29_mipmapping.cpp:1522–1530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1520 }
1521
1522 VkPresentModeKHR chooseSwapPresentMode(const std::vector<VkPresentModeKHR>& availablePresentModes) {
1523 for (const auto& availablePresentMode : availablePresentModes) {
1524 if (availablePresentMode == VK_PRESENT_MODE_MAILBOX_KHR) {
1525 return availablePresentMode;
1526 }
1527 }
1528
1529 return VK_PRESENT_MODE_FIFO_KHR;
1530 }
1531
1532 VkExtent2D chooseSwapExtent(const VkSurfaceCapabilitiesKHR& capabilities) {
1533 if (capabilities.currentExtent.width != std::numeric_limits<uint32_t>::max()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected