mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 09:03:36 +00:00
26 lines
507 B
C#
26 lines
507 B
C#
namespace Ryujinx.Graphics.Vulkan
|
|
{
|
|
enum Vendor
|
|
{
|
|
Amd,
|
|
Intel,
|
|
Nvidia,
|
|
Qualcomm,
|
|
Unknown
|
|
}
|
|
|
|
static class VendorUtils
|
|
{
|
|
public static Vendor FromId(uint id)
|
|
{
|
|
return id switch
|
|
{
|
|
0x1002 => Vendor.Amd,
|
|
0x10DE => Vendor.Nvidia,
|
|
0x8086 => Vendor.Intel,
|
|
0x5143 => Vendor.Qualcomm,
|
|
_ => Vendor.Unknown
|
|
};
|
|
}
|
|
}
|
|
}
|