Use source generated regular expressions (#4005)
This commit is contained in:
parent
933e5144a9
commit
3868a00206
5 changed files with 42 additions and 19 deletions
|
@ -11,9 +11,10 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
Unknown
|
||||
}
|
||||
|
||||
static class VendorUtils
|
||||
static partial class VendorUtils
|
||||
{
|
||||
public static Regex AmdGcnRegex = new Regex(@"Radeon (((HD|R(5|7|9|X)) )?((M?[2-6]\d{2}(\D|$))|([7-8]\d{3}(\D|$))|Fury|Nano))|(Pro Duo)");
|
||||
[GeneratedRegex("Radeon (((HD|R(5|7|9|X)) )?((M?[2-6]\\d{2}(\\D|$))|([7-8]\\d{3}(\\D|$))|Fury|Nano))|(Pro Duo)")]
|
||||
public static partial Regex AmdGcnRegex();
|
||||
|
||||
public static Vendor FromId(uint id)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue