[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
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ namespace Ryujinx.ShaderTools
|
||||||
|
|
||||||
public ReadOnlySpan<ulong> GetCode(ulong address, int minimumSize)
|
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);
|
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();
|
ShaderProgram program = Translator.CreateContext(0, new GpuAccessor(data), translationOptions).Translate();
|
||||||
|
|
||||||
|
@ -90,4 +90,4 @@ namespace Ryujinx.ShaderTools
|
||||||
.WithNotParsed(errors => errors.Output());
|
.WithNotParsed(errors => errors.Output());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue