MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Hpp / main

Function main

samples/InstanceVersion/InstanceVersion.cpp:17–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17int 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}

Callers

nothing calls this directly

Calls 1

decodeAPIVersionFunction · 0.70

Tested by

no test coverage detected