Added functionality to get list of devices

This commit is contained in:
Alejandro Saucedo 2021-03-20 08:49:27 +00:00
parent aff13846c1
commit a8e5ce7903
3 changed files with 21 additions and 3 deletions

View file

@ -154,10 +154,20 @@ class Manager
void clear();
/**
* Return a struct containing information about the device.
* Information about the current device.
*
* @return vk::PhysicalDeviceProperties containing information about the device
**/
vk::PhysicalDeviceProperties getDeviceProperties() const;
/**
* List the devices available in the current vulkan instance.
*
* @return vector of physical devices containing their respective properties
**/
std::vector<vk::PhysicalDevice> listDevices() const;
private:
// -------------- OPTIONALLY OWNED RESOURCES
std::shared_ptr<vk::Instance> mInstance = nullptr;