Use Legacy namespace

This commit is contained in:
Isaac Marovitz 2024-05-09 12:10:46 -04:00
parent 4ee4b0f3ac
commit d8b7d87e13
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1
38 changed files with 42 additions and 44 deletions

View file

@ -38,7 +38,6 @@
<PackageVersion Include="securifybv.ShellLink" Version="0.1.0" />
<PackageVersion Include="shaderc.net" Version="0.1.0" />
<PackageVersion Include="SharpZipLib" Version="1.4.2" />
<PackageVersion Include="Silk.NET.OpenGL" Version="2.21.0" />
<PackageVersion Include="Silk.NET.OpenGL.Legacy" Version="2.21.0" />
<PackageVersion Include="Silk.NET.Vulkan" Version="2.16.0" />
<PackageVersion Include="Silk.NET.Vulkan.Extensions.EXT" Version="2.16.0" />

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.OpenGL.Image;
using System;
using Sampler = Ryujinx.Graphics.OpenGL.Image.Sampler;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Image;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common;
using Ryujinx.Graphics.OpenGL.Image;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
namespace Ryujinx.Graphics.OpenGL.Effects
{

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Image;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;
@ -12,7 +12,7 @@ namespace Ryujinx.Graphics.OpenGL
switch (mode)
{
case AddressMode.Clamp:
return GLEnum.Clamp;
return TextureWrapMode.Clamp;
case AddressMode.Repeat:
return TextureWrapMode.Repeat;
case AddressMode.MirrorClamp:
@ -411,21 +411,21 @@ namespace Ryujinx.Graphics.OpenGL
return TextureMinFilter.Nearest;
}
public static Silk.NET.OpenGL.PolygonMode Convert(this GAL.PolygonMode mode)
public static Silk.NET.OpenGL.Legacy.PolygonMode Convert(this GAL.PolygonMode mode)
{
switch (mode)
{
case GAL.PolygonMode.Point:
return Silk.NET.OpenGL.PolygonMode.Point;
return Silk.NET.OpenGL.Legacy.PolygonMode.Point;
case GAL.PolygonMode.Line:
return Silk.NET.OpenGL.PolygonMode.Line;
return Silk.NET.OpenGL.Legacy.PolygonMode.Line;
case GAL.PolygonMode.Fill:
return Silk.NET.OpenGL.PolygonMode.Fill;
return Silk.NET.OpenGL.Legacy.PolygonMode.Fill;
}
Logger.Debug?.Print(LogClass.Gpu, $"Invalid {nameof(GAL.PolygonMode)} enum value: {mode}.");
return Silk.NET.OpenGL.PolygonMode.Fill;
return Silk.NET.OpenGL.Legacy.PolygonMode.Fill;
}
public static PrimitiveType Convert(this PrimitiveTopology topology)

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
namespace Ryujinx.Graphics.OpenGL
{

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Image;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using System;
namespace Ryujinx.Graphics.OpenGL

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.OpenGL.Image

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.OpenGL.Image

View file

@ -1,5 +1,5 @@
using Ryujinx.Graphics.GAL;
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
namespace Ryujinx.Graphics.OpenGL.Image
{

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
namespace Ryujinx.Graphics.OpenGL.Image

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;
using System.Buffers;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common;
using Ryujinx.Graphics.GAL;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using System;
using System.Collections.Generic;
using System.Globalization;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;
using System.Numerics;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common;
using Ryujinx.Graphics.GAL;
using System;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Image;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Image;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.Shader;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using System;
using System.Runtime.InteropServices;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;
using System.Threading;

View file

@ -1,5 +1,5 @@
using Ryujinx.Graphics.GAL;
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using System;
namespace Ryujinx.Graphics.OpenGL.Queries

View file

@ -6,7 +6,6 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Silk.NET.OpenGL" />
<PackageReference Include="Silk.NET.OpenGL.Legacy" />
</ItemGroup>

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Logging;
using System;
using System.Collections.Generic;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using System;
using System.Numerics;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.GAL;
using Ryujinx.Graphics.OpenGL.Effects;
using Ryujinx.Graphics.OpenGL.Effects.Smaa;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using Ryujinx.Input.HLE;

View file

@ -1,4 +1,4 @@
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Graphics.OpenGL;
using SPB.Graphics;
using SPB.Graphics.OpenGL;

View file

@ -1,5 +1,5 @@
using OpenTK;
using Silk.NET.OpenGL;
using Silk.NET.OpenGL.Legacy;
using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using Ryujinx.Graphics.OpenGL;