Hello Guest

The VkDeviceQueueCreateInfo structure doesn't the queueCount(int value) method

  • 1 Replies
In description of VkDeviceQueueCreateInfo structure in native Vulkan has the field queueCount that setting the count of queues in queue family created for that device, but in LWJGL realization analogical method seemly absent (only queueCount() without parameters that get field value not set). How I can request multiple queues of queues family without it.


Offline KaiHH

  • ***
  • 154
The queueCount is obtained from the remaining buffer elements when setting pQueuePriorities. Since the number of queue priorities must always be equal to the queueCount, both are automatically linked together and you don't need to specify the queueCount explicitly.
See the implementation of LWJGL3's VkDeviceQueueCreateInfo struct class here: https://github.com/LWJGL/lwjgl3/blob/24bb3f11b49a4469d700187cfeffa89cf0fc04dc/modules/lwjgl/vulkan/src/generated/java/org/lwjgl/vulkan/VkDeviceQueueCreateInfo.java#L344