Switch to EquatableArray<T> in ComputeSharp.D2D1 models

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-20 03:24:31 +02:00
1 親 23e5300dee
コミット 4def9f65a9
14ファイル変更
+29 -472

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

+2 -2
ファイルの表示
@@ -41,7 +41,7 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
token.ThrowIfCancellationRequested();
// Get the remaining info for the current shader
ImmutableArray<SyntaxKind> modifiers = methodDeclaration.Modifiers.Select(token => token.Kind()).ToImmutableArray();
ImmutableArray<ushort> modifiers = methodDeclaration.Modifiers.Select(token => (ushort)token.Kind()).ToImmutableArray();
string methodName = methodSymbol.Name;
string? invalidReturnType = Execute.GetInvalidReturnType(diagnostics, methodSymbol);
D2D1ShaderProfile shaderProfile = Execute.GetShaderProfile(diagnostics, methodSymbol);
@@ -63,7 +63,7 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
// Output the diagnostics
context.ReportDiagnostics(
shaderInfoWithErrors
.Select(static (item, _) => item.Diagnostcs)
.Select(static (item, _) => item.Diagnostcs.AsImmutableArray())
.WithComparer(EqualityComparer<DiagnosticInfo>.Default.ForImmutableArray()));
// Compile the requested shader bytecodes