| 15 | } |
| 16 | |
| 17 | int main() |
| 18 | { |
| 19 | try |
| 20 | { |
| 21 | /* VULKAN_KEY_START */ |
| 22 | |
| 23 | uint32_t apiVersion = vk::enumerateInstanceVersion(); |
| 24 | std::cout << "APIVersion = " << decodeAPIVersion( apiVersion ) << std::endl; |
| 25 | |
| 26 | /* VULKAN_KEY_END */ |
| 27 | } |
| 28 | catch ( vk::SystemError & err ) |
| 29 | { |
| 30 | std::cout << "vk::SystemError: " << err.what() << std::endl; |
| 31 | exit( -1 ); |
| 32 | } |
| 33 | catch ( std::exception & err ) |
| 34 | { |
| 35 | std::cout << "std::exception: " << err.what() << std::endl; |
| 36 | exit( -1 ); |
| 37 | } |
| 38 | catch ( ... ) |
| 39 | { |
| 40 | std::cout << "unknown error\n"; |
| 41 | exit( -1 ); |
| 42 | } |
| 43 | return 0; |
| 44 | } |
nothing calls this directly
no test coverage detected