From fd01259d2b43efcb67efdb32c8879c67e96ccdfe Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Sun, 25 Jun 2023 21:37:33 +0200 Subject: [PATCH] [Ryujinx.ShaderTools] Address dotnet-format issues (#5388) * dotnet format style --severity info Some changes were manually reverted. * dotnet format whitespace after rebase --- src/Ryujinx.ShaderTools/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.ShaderTools/Program.cs b/src/Ryujinx.ShaderTools/Program.cs index 3acebbda6..55ff12bea 100644 --- a/src/Ryujinx.ShaderTools/Program.cs +++ b/src/Ryujinx.ShaderTools/Program.cs @@ -20,7 +20,7 @@ namespace Ryujinx.ShaderTools public ReadOnlySpan GetCode(ulong address, int minimumSize) { - return MemoryMarshal.Cast(new ReadOnlySpan(_data).Slice((int)address)); + return MemoryMarshal.Cast(new ReadOnlySpan(_data)[(int)address..]); } } @@ -53,7 +53,7 @@ namespace Ryujinx.ShaderTools byte[] data = File.ReadAllBytes(options.InputPath); - TranslationOptions translationOptions = new TranslationOptions(options.TargetLanguage, options.TargetApi, flags); + TranslationOptions translationOptions = new(options.TargetLanguage, options.TargetApi, flags); ShaderProgram program = Translator.CreateContext(0, new GpuAccessor(data), translationOptions).Translate(); @@ -90,4 +90,4 @@ namespace Ryujinx.ShaderTools .WithNotParsed(errors => errors.Output()); } } -} \ No newline at end of file +}