LWJGL Forum

Programming => Vulkan => Topic started by: Konstantin Filippov on November 29, 2018, 09:46:54

Title: The VkDeviceQueueCreateInfo structure doesn't the queueCount(int value) method
Post by: Konstantin Filippov on November 29, 2018, 09:46:54
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.
Title: Re: The VkDeviceQueueCreateInfo structure doesn't the queueCount(int value) method
Post by: KaiHH on November 29, 2018, 09:56:40
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