| 85 | }; |
| 86 | |
| 87 | static inline void chk(VkResult result) { |
| 88 | if (result != VK_SUCCESS) { |
| 89 | std::cerr << "Vulkan call returned an error (" << result << ")\n"; |
| 90 | exit(result); |
| 91 | } |
| 92 | } |
| 93 | static inline void chkSwapchain(VkResult result) { |
| 94 | if (result < VK_SUCCESS) { |
| 95 | if (result == VK_ERROR_OUT_OF_DATE_KHR) { |