Get information about the Vulkan driver. More...
#include <driver_info_vk.h>
Public Member Functions | |
DriverInfoVK (const vk::PhysicalDevice &device) | |
~DriverInfoVK () | |
DriverInfoVK (const DriverInfoVK &)=delete | |
DriverInfoVK & | operator= (const DriverInfoVK &)=delete |
const Version & | GetAPIVersion () const |
Gets the Vulkan API version. Should be at or above Vulkan 1.1 which is the Impeller baseline. More... | |
const VendorVK & | GetVendor () const |
Get the vendor of the Vulkan implementation. This is a broad check and includes multiple drivers and platforms. More... | |
const DeviceTypeVK & | GetDeviceType () const |
Get the device type. Typical use might be to check if the device is a CPU implementation. More... | |
const std::string & | GetDriverName () const |
Get the self-reported name of the graphics driver. More... | |
Get information about the Vulkan driver.
Before gating features behind any of the information reported by the driver, consider alternatives (extensions checks perhaps) and try to get a reviewer buddy to convince you to avoid using this.
Definition at line 69 of file driver_info_vk.h.
|
explicit |
Definition at line 61 of file driver_info_vk.cc.
References impeller::IdentifyVendor(), impeller::kUnknown, and impeller::ToDeviceType().
|
default |
|
delete |
const Version & impeller::DriverInfoVK::GetAPIVersion | ( | ) | const |
Gets the Vulkan API version. Should be at or above Vulkan 1.1 which is the Impeller baseline.
Definition at line 79 of file driver_info_vk.cc.
const DeviceTypeVK & impeller::DriverInfoVK::GetDeviceType | ( | ) | const |
Get the device type. Typical use might be to check if the device is a CPU implementation.
Definition at line 87 of file driver_info_vk.cc.
const std::string & impeller::DriverInfoVK::GetDriverName | ( | ) | const |
Get the self-reported name of the graphics driver.
Definition at line 91 of file driver_info_vk.cc.
const VendorVK & impeller::DriverInfoVK::GetVendor | ( | ) | const |
Get the vendor of the Vulkan implementation. This is a broad check and includes multiple drivers and platforms.
Definition at line 83 of file driver_info_vk.cc.
|
delete |