Make all models directly equatable
このコミットが含まれているのは:
1 親
f27e98f2fa
コミット
87f2e04ca0
23ファイル変更
+287
-169
検索条件に一致するファイルはありません
@@ -12,10 +12,16 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
/// <param name="Delegates">The list of delegate field names for the shader.</param>
|
||||
internal sealed record DispatchIdInfo(ImmutableArray<string> Delegates)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(DispatchIdInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="DispatchIdInfo"/>.
|
||||
/// </summary>
|
||||
public sealed class Comparer : Comparer<DispatchIdInfo, Comparer>
|
||||
private sealed class Comparer : Comparer<DispatchIdInfo, Comparer>
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
protected override void AddToHashCode(ref HashCode hashCode, DispatchIdInfo obj)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする