0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 03:45:46 +00:00

[Ryujinx.ShaderTools] Address dotnet-format issues (#5388)

* dotnet format style --severity info

Some changes were manually reverted.

* dotnet format whitespace after rebase
This commit is contained in:
TSRBerry 2023-06-25 21:37:33 +02:00 committed by GitHub
parent 7ffe7f8442
commit fd01259d2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ namespace Ryujinx.ShaderTools
public ReadOnlySpan<ulong> GetCode(ulong address, int minimumSize)
{
return MemoryMarshal.Cast<byte, ulong>(new ReadOnlySpan<byte>(_data).Slice((int)address));
return MemoryMarshal.Cast<byte, ulong>(new ReadOnlySpan<byte>(_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());
}
}
}
}