misc: chore: Use collection expressions in Gpu project
This commit is contained in:
@@ -122,7 +122,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.HashTable
|
||||
/// </summary>
|
||||
public PartitionHashTable()
|
||||
{
|
||||
_buckets = Array.Empty<Bucket>();
|
||||
_buckets = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -234,7 +234,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.HashTable
|
||||
}
|
||||
else
|
||||
{
|
||||
(bucket.MoreEntries ??= new List<Entry>()).Add(entry);
|
||||
(bucket.MoreEntries ??= []).Add(entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -104,7 +104,7 @@ namespace Ryujinx.Graphics.Gpu.Shader.HashTable
|
||||
/// </summary>
|
||||
public PartitionedHashTable()
|
||||
{
|
||||
_sizeTable = new List<SizeEntry>();
|
||||
_sizeTable = [];
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user