UgQueueFamilies

Queue family query utilities

count

Get the number of queue families available on a physical device

U32 count(VkPhysicalDevice device);

Parameters

  • device — Physical device to query

Returns — Number of queue families


hasType

Check whether the device has a queue family supporting a given type

U8 hasType(VkPhysicalDevice device, VkQueueFlagBits type);

Parameters

  • device — Physical device to check
  • type — Queue capability flag to look for

Returns — Non-zero if a matching queue family exists


getType

Get the index of the first queue family supporting a given type

U32 getType(VkPhysicalDevice device, VkQueueFlagBits type);

Parameters

  • device — Physical device to query
  • type — Queue capability flag to find

Returns — Queue family index