Ryujinx/Ryujinx.Graphics.Vulkan/Vendor.cs
riperiperi c98b61ade8 Use RobustBufferAccess on NVIDIA gpus
Avoids the SMO waterfall triangle on older NVIDIA gpus.
2022-06-17 22:47:04 +01:00

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
};
}
}
}