MCPcopy Create free account
hub / github.com/SaschaWillems/HowToVulkan / chk

Function chk

source/main.cpp:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85};
86
87static 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}
93static inline void chkSwapchain(VkResult result) {
94 if (result < VK_SUCCESS) {
95 if (result == VK_ERROR_OUT_OF_DATE_KHR) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected