Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Get Queue and Queue Index Utility #197

Open
nickclark2016 opened this issue Mar 15, 2023 · 1 comment · May be fixed by #214
Open

[Feature Request] Get Queue and Queue Index Utility #197

nickclark2016 opened this issue Mar 15, 2023 · 1 comment · May be fixed by #214

Comments

@nickclark2016
Copy link
Contributor

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.

@charles-lunarg
Copy link
Owner

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 charles-lunarg linked a pull request Oct 17, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants