Vulkan: Provide a more accurate method of detecting drivers/vendors

This is needed to differentiate between the open-source Mesa drivers and
their binary counterparts for Intel and AMD.
This commit is contained in:
Stenzek
2017-09-19 21:11:33 +10:00
parent f7ff634e4f
commit db810956ec
4 changed files with 80 additions and 38 deletions

View File

@ -114,6 +114,7 @@ private:
bool SelectDeviceExtensions(ExtensionList* extension_list, bool enable_surface);
bool SelectDeviceFeatures();
bool CreateDevice(VkSurfaceKHR surface, bool enable_validation_layer);
void InitDriverDetails();
VkInstance m_instance = VK_NULL_HANDLE;
VkPhysicalDevice m_physical_device = VK_NULL_HANDLE;