Преглед на файлове

misc: chore: Fix object creation in OpenGL project

Evan Husted преди 1 година
родител
ревизия
eae6dba610

+ 1 - 1
src/Ryujinx.Graphics.OpenGL/Effects/FsrScalingFilter.cs

@@ -98,7 +98,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects
             {
             {
                 _intermediaryTexture?.Dispose();
                 _intermediaryTexture?.Dispose();
                 TextureCreateInfo originalInfo = view.Info;
                 TextureCreateInfo originalInfo = view.Info;
-                TextureCreateInfo info = new TextureCreateInfo(width,
+                TextureCreateInfo info = new(width,
                     height,
                     height,
                     originalInfo.Depth,
                     originalInfo.Depth,
                     originalInfo.Levels,
                     originalInfo.Levels,

+ 3 - 3
src/Ryujinx.Graphics.OpenGL/Effects/SmaaPostProcessingEffect.cs

@@ -117,7 +117,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa
 
 
         private void Initialize()
         private void Initialize()
         {
         {
-            TextureCreateInfo areaInfo = new TextureCreateInfo(AreaWidth,
+            TextureCreateInfo areaInfo = new(AreaWidth,
                 AreaHeight,
                 AreaHeight,
                 1,
                 1,
                 1,
                 1,
@@ -133,7 +133,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa
                 SwizzleComponent.Blue,
                 SwizzleComponent.Blue,
                 SwizzleComponent.Alpha);
                 SwizzleComponent.Alpha);
 
 
-            TextureCreateInfo searchInfo = new TextureCreateInfo(SearchWidth,
+            TextureCreateInfo searchInfo = new(SearchWidth,
                 SearchHeight,
                 SearchHeight,
                 1,
                 1,
                 1,
                 1,
@@ -194,7 +194,7 @@ namespace Ryujinx.Graphics.OpenGL.Effects.Smaa
             GL.ActiveTexture(TextureUnit.Texture2);
             GL.ActiveTexture(TextureUnit.Texture2);
             int previousTextureBinding2 = GL.GetInteger(GetPName.TextureBinding2D);
             int previousTextureBinding2 = GL.GetInteger(GetPName.TextureBinding2D);
 
 
-            Framebuffer framebuffer = new Framebuffer();
+            Framebuffer framebuffer = new();
             framebuffer.Bind();
             framebuffer.Bind();
             framebuffer.AttachColor(0, edgeOutput);
             framebuffer.AttachColor(0, edgeOutput);
             GL.Clear(ClearBufferMask.ColorBufferBit);
             GL.Clear(ClearBufferMask.ColorBufferBit);

+ 1 - 1
src/Ryujinx.Graphics.OpenGL/Window.cs

@@ -394,7 +394,7 @@ namespace Ryujinx.Graphics.OpenGL
         {
         {
             _upscaledTexture?.Dispose();
             _upscaledTexture?.Dispose();
 
 
-            TextureCreateInfo info = new TextureCreateInfo(
+            TextureCreateInfo info = new(
                 _width,
                 _width,
                 _height,
                 _height,
                 1,
                 1,