April 2017
Intermediate to advanced
700 pages
21h 36m
English
First, we acquire the properties of queue families available on a given physical device. This is the operation described in the Checking available queue families and their properties recipe. We store the results of the query in the queue_families variable, which is of std::vector type with VkQueueFamilyProperties elements:
std::vector<VkQueueFamilyProperties> queue_families;
if( !CheckAvailableQueueFamiliesAndTheirProperties( physical_device, queue_families ) ) {
return false;
}
Next, we start inspecting all elements of a queue_families vector:
for( uint32_t index = 0; index < static_cast<uint32_t>(queue_families.size()); ++index ) { if( (queue_families[index].queueCount > 0) && (queue_families[index].queueFlags & desired_capabilities ...Read now
Unlock full access