Prefer generic overload when type is known (#430)

This commit is contained in:
Marco Carvalho
2024-12-22 16:23:35 -03:00
committed by GitHub
parent 8259f790d7
commit b5483d8fe0
8 changed files with 14 additions and 14 deletions

View File

@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.Vulkan
static FormatTable()
{
_table = new VkFormat[Enum.GetNames(typeof(Format)).Length];
_table = new VkFormat[Enum.GetNames<Format>().Length];
_reverseMap = new Dictionary<VkFormat, Format>();
#pragma warning disable IDE0055 // Disable formatting