Skip to content

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

Open
@nickclark2016

Description

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.

Activity

charles-lunarg

charles-lunarg commented on Sep 25, 2023

@charles-lunarg
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)

linked a pull request that will close this issue on Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Participants

    @nickclark2016@charles-lunarg

    Issue actions

      [Feature Request] Get Queue and Queue Index Utility · Issue #197 · charles-lunarg/vk-bootstrap