Prefer using collection expressions with implicit object creation when the type is apparent #455

Closed
marco-carvalho wants to merge 7 commits from prefer_collection_expression_implicit_object_creation into master
Showing only changes of commit edbd4c73e2 - Show all commits

View File

@ -87,8 +87,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Msl
.GroupBy(x => x.Set)
.ToDictionary(x => x.Key, x => x.OrderBy(y => y.Binding).ToArray());
var textureSets = textureDefinitions.Keys.ToArray();
var imageSets = imageDefinitions.Keys.ToArray();
int[] textureSets = [.. textureDefinitions.Keys];
int[] imageSets = [.. imageDefinitions.Keys];
var sets = textureSets.Union(imageSets).ToArray();