diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-29 14:41:50 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 654e617fe78b0f5cc86d0bcf0625301abff168f5 (patch) | |
| tree | 01f2eba89039698bec583a3e29c4c50d0e20b8d1 /Ryujinx.Graphics.OpenGL/EnumConversion.cs | |
| parent | af8498d6790ba83f1cf87eccf5f272f2ccbeb169 (diff) | |
Some code cleanup
Diffstat (limited to 'Ryujinx.Graphics.OpenGL/EnumConversion.cs')
| -rw-r--r-- | Ryujinx.Graphics.OpenGL/EnumConversion.cs | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/Ryujinx.Graphics.OpenGL/EnumConversion.cs b/Ryujinx.Graphics.OpenGL/EnumConversion.cs index 99ed0404..fdd1f972 100644 --- a/Ryujinx.Graphics.OpenGL/EnumConversion.cs +++ b/Ryujinx.Graphics.OpenGL/EnumConversion.cs @@ -1,9 +1,6 @@ using OpenTK.Graphics.OpenGL; using Ryujinx.Common.Logging; using Ryujinx.Graphics.GAL; -using Ryujinx.Graphics.GAL.Blend; -using Ryujinx.Graphics.GAL.Sampler; -using Ryujinx.Graphics.GAL.Texture; namespace Ryujinx.Graphics.OpenGL { @@ -334,31 +331,31 @@ namespace Ryujinx.Graphics.OpenGL return PrimitiveType.Points; } - public static StencilOp Convert(this GAL.DepthStencil.StencilOp op) + public static OpenTK.Graphics.OpenGL.StencilOp Convert(this GAL.StencilOp op) { switch (op) { - case GAL.DepthStencil.StencilOp.Keep: - return StencilOp.Keep; - case GAL.DepthStencil.StencilOp.Zero: - return StencilOp.Zero; - case GAL.DepthStencil.StencilOp.Replace: - return StencilOp.Replace; - case GAL.DepthStencil.StencilOp.IncrementAndClamp: - return StencilOp.Incr; - case GAL.DepthStencil.StencilOp.DecrementAndClamp: - return StencilOp.Decr; - case GAL.DepthStencil.StencilOp.Invert: - return StencilOp.Invert; - case GAL.DepthStencil.StencilOp.IncrementAndWrap: - return StencilOp.IncrWrap; - case GAL.DepthStencil.StencilOp.DecrementAndWrap: - return StencilOp.DecrWrap; + case GAL.StencilOp.Keep: + return OpenTK.Graphics.OpenGL.StencilOp.Keep; + case GAL.StencilOp.Zero: + return OpenTK.Graphics.OpenGL.StencilOp.Zero; + case GAL.StencilOp.Replace: + return OpenTK.Graphics.OpenGL.StencilOp.Replace; + case GAL.StencilOp.IncrementAndClamp: + return OpenTK.Graphics.OpenGL.StencilOp.Incr; + case GAL.StencilOp.DecrementAndClamp: + return OpenTK.Graphics.OpenGL.StencilOp.Decr; + case GAL.StencilOp.Invert: + return OpenTK.Graphics.OpenGL.StencilOp.Invert; + case GAL.StencilOp.IncrementAndWrap: + return OpenTK.Graphics.OpenGL.StencilOp.IncrWrap; + case GAL.StencilOp.DecrementAndWrap: + return OpenTK.Graphics.OpenGL.StencilOp.DecrWrap; } - Logger.PrintError(LogClass.Gpu, $"Invalid {nameof(GAL.DepthStencil.StencilOp)} enum value: {op}."); + Logger.PrintError(LogClass.Gpu, $"Invalid {nameof(GAL.StencilOp)} enum value: {op}."); - return StencilOp.Keep; + return OpenTK.Graphics.OpenGL.StencilOp.Keep; } public static All Convert(this SwizzleComponent swizzleComponent) |
