VideoCommon: Extend DriverDetails to support both OpenGL and Vulkan

This commit is contained in:
Stenzek
2016-08-13 15:16:31 +10:00
parent a71381e80a
commit 09638e714e
3 changed files with 87 additions and 32 deletions

View File

@ -8,6 +8,15 @@
namespace DriverDetails
{
// API types supported by driver details
// This is separate to APIType in VideoConfig.h due to the fact that a bug
// can affect multiple APIs.
enum API
{
API_OPENGL = (1 << 0),
API_VULKAN = (1 << 1)
};
// Enum of supported operating systems
enum OS
{
@ -216,9 +225,12 @@ enum Bug
};
// Initializes our internal vendor, device family, and driver version
void Init(Vendor vendor, Driver driver, const double version, const Family family);
void Init(API api, Vendor vendor, Driver driver, const double version, const Family family);
// Once Vendor and driver version is set, this will return if it has the applicable bug passed to
// it.
bool HasBug(Bug bug);
// Attempts to map a PCI vendor ID to our Vendor enumeration
Vendor TranslatePCIVendorID(u32 vendor_id);
}