Adopt collection expression syntax in generated code

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-20 23:28:50 +01:00
1 親 d79fdeab71
コミット 48f3b847a7
7ファイル変更
+17 -17

検索条件に一致するファイルはありません

@@ -111,11 +111,11 @@ partial class D2DPixelShaderDescriptorGenerator
// RVA field (with the compiled HLSL bytecode, on a single line)
writer.WriteLine();
writer.WriteLine("/// <summary>The RVA data with the HLSL bytecode.</summary>");
writer.Write("private static ReadOnlySpan<byte> Data => new byte[] { ");
writer.Write("private static ReadOnlySpan<byte> Data => [");
SyntaxFormattingHelper.WriteByteArrayInitializationExpressions(((HlslBytecodeInfo.Success)info.HlslInfo).Bytecode.AsSpan(), writer);
writer.WriteLine(" };");
writer.WriteLine("];");
writer.WriteLine();
// Add the remaining members for the memory manager