aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs')
-rw-r--r--src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs b/src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs
index 93eeb8d7..80d599e9 100644
--- a/src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs
+++ b/src/Ryujinx.Graphics.Gpu/Shader/ShaderDumper.cs
@@ -46,13 +46,13 @@ namespace Ryujinx.Graphics.Gpu.Shader
CurrentDumpIndex++;
- using MemoryStream stream = new MemoryStream(code);
- BinaryReader codeReader = new BinaryReader(stream);
+ using MemoryStream stream = new(code);
+ BinaryReader codeReader = new(stream);
using FileStream fullFile = File.Create(fullPath);
using FileStream codeFile = File.Create(codePath);
- BinaryWriter fullWriter = new BinaryWriter(fullFile);
- BinaryWriter codeWriter = new BinaryWriter(codeFile);
+ BinaryWriter fullWriter = new(fullFile);
+ BinaryWriter codeWriter = new(codeFile);
int headerSize = compute ? 0 : 0x50;
@@ -126,4 +126,4 @@ namespace Ryujinx.Graphics.Gpu.Shader
return dir;
}
}
-} \ No newline at end of file
+}