mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: Extend DriverDetails to support both OpenGL and Vulkan
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user