vk-bootstrap icon indicating copy to clipboard operation
vk-bootstrap copied to clipboard

[Feature Request] Get Queue and Queue Index Utility

Open nickclark2016 opened this issue 1 year ago • 1 comments

A lot of times, it's nice to have both the VkQueue and queue index. I propose we add this convenience function to vkb::Device:

vkb::Result<std::pair<VkQueue, std::uint32_t>> vkb::Device::get_queue_and_index(vkb::QueueType type) const;

Upon failure to fetch the queue index or VkQueue, it would return a result with the respective error. Upon successfully fetching both, it would return a pair of the queue and index.

nickclark2016 avatar Mar 15 '23 18:03 nickclark2016

I have begun work on a solution to this https://github.com/charles-lunarg/vk-bootstrap/tree/queue_rework

Needs tests & documentation, but the API is solidified (check VkBootstrap.h)

charles-lunarg avatar Sep 25 '23 18:09 charles-lunarg