2019-10-13 06:02:07 +00:00
|
|
|
using OpenTK.Graphics.OpenGL;
|
|
|
|
using Ryujinx.Graphics.GAL;
|
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.OpenGL
|
|
|
|
{
|
|
|
|
static class CompareOpConverter
|
|
|
|
{
|
|
|
|
public static All Convert(this CompareOp op)
|
|
|
|
{
|
|
|
|
switch (op)
|
|
|
|
{
|
2019-12-05 20:34:47 +00:00
|
|
|
case CompareOp.Never:
|
|
|
|
case CompareOp.NeverGl:
|
|
|
|
return All.Never;
|
|
|
|
case CompareOp.Less:
|
|
|
|
case CompareOp.LessGl:
|
|
|
|
return All.Less;
|
|
|
|
case CompareOp.Equal:
|
|
|
|
case CompareOp.EqualGl:
|
|
|
|
return All.Equal;
|
|
|
|
case CompareOp.LessOrEqual:
|
|
|
|
case CompareOp.LessOrEqualGl:
|
|
|
|
return All.Lequal;
|
|
|
|
case CompareOp.Greater:
|
|
|
|
case CompareOp.GreaterGl:
|
|
|
|
return All.Greater;
|
|
|
|
case CompareOp.NotEqual:
|
|
|
|
case CompareOp.NotEqualGl:
|
|
|
|
return All.Notequal;
|
|
|
|
case CompareOp.GreaterOrEqual:
|
|
|
|
case CompareOp.GreaterOrEqualGl:
|
|
|
|
return All.Gequal;
|
|
|
|
case CompareOp.Always:
|
|
|
|
case CompareOp.AlwaysGl:
|
|
|
|
return All.Always;
|
2019-10-13 06:02:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return All.Never;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|