| 1260 | } |
| 1261 | |
| 1262 | VkSurfaceFormatKHR chooseSwapSurfaceFormat(const std::vector<VkSurfaceFormatKHR>& availableFormats) { |
| 1263 | for (const auto& availableFormat : availableFormats) { |
| 1264 | if (availableFormat.format == VK_FORMAT_B8G8R8A8_SRGB && availableFormat.colorSpace == VK_COLOR_SPACE_SRGB_NONLINEAR_KHR) { |
| 1265 | return availableFormat; |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | return availableFormats[0]; |
| 1270 | } |
| 1271 | |
| 1272 | VkPresentModeKHR chooseSwapPresentMode(const std::vector<VkPresentModeKHR>& availablePresentModes) { |
| 1273 | for (const auto& availablePresentMode : availablePresentModes) { |
nothing calls this directly
no outgoing calls
no test coverage detected