aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.OpenGL
diff options
context:
space:
mode:
authorBerkan Diler <berkan.diler1@ingka.ikea.com>2022-02-13 14:50:07 +0100
committerGitHub <noreply@github.com>2022-02-13 10:50:07 -0300
commit8f353457295767edaaf9dfccb4d938bc1befeb40 (patch)
treed263a7bdb9aca026105b0681d3d5ec4849cf8a2e /Ryujinx.Graphics.OpenGL
parentce71f9144e1575c432bb009755f01466cd685fbf (diff)
Use Enum and Delegate.CreateDelegate generic overloads (#3111)
* Use Enum generic overloads * Remove EnumExtensions.cs * Use Delegate.CreateDelegate generic overloads
Diffstat (limited to 'Ryujinx.Graphics.OpenGL')
-rw-r--r--Ryujinx.Graphics.OpenGL/FormatTable.cs2
-rw-r--r--Ryujinx.Graphics.OpenGL/Queries/Counters.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.OpenGL/FormatTable.cs b/Ryujinx.Graphics.OpenGL/FormatTable.cs
index 41fd9f37..c054ba57 100644
--- a/Ryujinx.Graphics.OpenGL/FormatTable.cs
+++ b/Ryujinx.Graphics.OpenGL/FormatTable.cs
@@ -11,7 +11,7 @@ namespace Ryujinx.Graphics.OpenGL
static FormatTable()
{
- int tableSize = Enum.GetNames(typeof(Format)).Length;
+ int tableSize = Enum.GetNames<Format>().Length;
Table = new FormatInfo[tableSize];
TableImage = new SizedInternalFormat[tableSize];
diff --git a/Ryujinx.Graphics.OpenGL/Queries/Counters.cs b/Ryujinx.Graphics.OpenGL/Queries/Counters.cs
index 0c0a915d..582800c8 100644
--- a/Ryujinx.Graphics.OpenGL/Queries/Counters.cs
+++ b/Ryujinx.Graphics.OpenGL/Queries/Counters.cs
@@ -9,7 +9,7 @@ namespace Ryujinx.Graphics.OpenGL.Queries
public Counters()
{
- int count = Enum.GetNames(typeof(CounterType)).Length;
+ int count = Enum.GetNames<CounterType>().Length;
_counterQueues = new CounterQueue[count];
}