mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-17 12:06:39 +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:
parent
7ffe7f8442
commit
fd01259d2b
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user