April 2017
Intermediate to advanced
700 pages
21h 36m
English
To create an Instance, we need to prepare some information. First, we need to create an array of names of instance-level extensions that we would like to enable. Next, we need to check if they are supported on a given hardware. This is done by acquiring the list of all available instance-level extensions and checking if it contains the names of all the extensions we want to enable:
std::vector<VkExtensionProperties> available_extensions; if( !CheckAvailableInstanceExtensions( available_extensions ) ) { return false; } for( auto & extension : desired_extensions ) { if( !IsExtensionSupported( available_extensions, extension ) ) { std::cout << "Extension named '" << extension << "' is not supported." << std::endl; return false; ...Read now
Unlock full access