mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-13 03:06:41 +00:00
20 lines
538 B
C#
20 lines
538 B
C#
using OpenTK.Graphics.OpenGL;
|
|
using Ryujinx.Graphics.GAL;
|
|
using System;
|
|
|
|
namespace Ryujinx.Graphics.OpenGL
|
|
{
|
|
static class DepthModeConverter
|
|
{
|
|
public static ClipDepthMode Convert(this DepthMode mode)
|
|
{
|
|
switch (mode)
|
|
{
|
|
case DepthMode.MinusOneToOne: return ClipDepthMode.NegativeOneToOne;
|
|
case DepthMode.ZeroToOne: return ClipDepthMode.ZeroToOne;
|
|
}
|
|
|
|
throw new ArgumentException($"Invalid depth mode \"{mode}\".");
|
|
}
|
|
}
|
|
}
|