0
0
Fork 0

[Ryujinx.Graphics.Host1x] Address dotnet-format issues (#5368)

* dotnet format style --severity info

Some changes were manually reverted.

* Address most dotnet format whitespace warnings

* Add comments to disabled warnings

* dotnet format whitespace after rebase
This commit is contained in:
TSRBerry 2023-06-27 16:35:48 +02:00 committed by GitHub
parent e96299eef5
commit 0191e2396a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Host1x
{ {
class Devices : IDisposable class Devices : IDisposable
{ {
private readonly Dictionary<ClassId, IDeviceState> _devices = new Dictionary<ClassId, IDeviceState>(); private readonly Dictionary<ClassId, IDeviceState> _devices = new();
public void RegisterDevice(ClassId classId, IDeviceState device) public void RegisterDevice(ClassId classId, IDeviceState device)
{ {

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Host1x
{ {
struct Host1xClassRegisters struct Host1xClassRegisters
{ {
#pragma warning disable CS0649 #pragma warning disable CS0649 // Field is never assigned to
public uint IncrSyncpt; public uint IncrSyncpt;
public uint IncrSyncptCntrl; public uint IncrSyncptCntrl;
public uint IncrSyncptError; public uint IncrSyncptError;

View file

@ -24,7 +24,7 @@ namespace Ryujinx.Graphics.Host1x
private readonly SyncptIncrManager _syncptIncrMgr; private readonly SyncptIncrManager _syncptIncrMgr;
private readonly AsyncWorkQueue<Command> _commandQueue; private readonly AsyncWorkQueue<Command> _commandQueue;
private readonly Devices _devices = new Devices(); private readonly Devices _devices = new();
public Host1xClass Class { get; } public Host1xClass Class { get; }

View file

@ -23,7 +23,7 @@ namespace Ryujinx.Graphics.Host1x
} }
} }
private readonly List<SyncptIncr> _incrs = new List<SyncptIncr>(); private readonly List<SyncptIncr> _incrs = new();
private uint _currentId; private uint _currentId;

View file

@ -4,7 +4,7 @@ namespace Ryujinx.Graphics.Host1x
{ {
struct ThiRegisters struct ThiRegisters
{ {
#pragma warning disable CS0649 #pragma warning disable CS0649 // Field is never assigned to
public uint IncrSyncpt; public uint IncrSyncpt;
public uint Reserved4; public uint Reserved4;
public uint IncrSyncptErr; public uint IncrSyncptErr;