mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-10-03 06:18:59 +02:00
Initial work
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using OpenTK.Graphics.OpenGL;
|
||||
using Ryujinx.Graphics.GAL;
|
||||
using System;
|
||||
|
||||
namespace Ryujinx.Graphics.OpenGL
|
||||
{
|
||||
static class IndexTypeConverter
|
||||
{
|
||||
public static DrawElementsType Convert(this IndexType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case IndexType.UByte: return DrawElementsType.UnsignedByte;
|
||||
case IndexType.UShort: return DrawElementsType.UnsignedShort;
|
||||
case IndexType.UInt: return DrawElementsType.UnsignedInt;
|
||||
}
|
||||
|
||||
throw new ArgumentException($"Invalid index type \"{type}\".");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user