Skip to content

enumerate physical devices API #3

@SpinnerX

Description

@SpinnerX

I was thinking that maybe simplifying how vulkan instances can enumerate physical devices by returning std::span<physical_device>.

This is for simplifying enumerating available physical GPU's on the user platform. Where each vk::physical_device would each contain relative parameters that tell you what configuration or support each hardware GPU have that is available for the user to utilize.

This was an idea that I had previously, I wanted to create an issue to come back to it if I want to do this later on.

Example

Here is an example of an API, I had considered.

vk::instance instance_ctx(/* some params setup */);
std::span<vk::physical_device> devices = vk::enumerate_physical_devices(instance_ctx);

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions