Flutter Engine
The Flutter Engine
|
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... | |
void | DumpToLog () const |
Dumps the current driver info to the log. More... | |
bool | IsEmulator () const |
Determines if the driver represents an emulator. There is no definitive way to tell if a driver is an emulator and drivers don't self identify as emulators. So take this information with a pinch of salt. 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 108 of file driver_info_vk.cc.
|
default |
|
delete |
void impeller::DriverInfoVK::DumpToLog | ( | ) | const |
Dumps the current driver info to the log.
Definition at line 142 of file driver_info_vk.cc.
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 126 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 134 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 138 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 130 of file driver_info_vk.cc.
bool impeller::DriverInfoVK::IsEmulator | ( | ) | const |
Determines if the driver represents an emulator. There is no definitive way to tell if a driver is an emulator and drivers don't self identify as emulators. So take this information with a pinch of salt.
Definition at line 176 of file driver_info_vk.cc.
|
delete |