Rename Rank to Dimensions in D2D1ResourceTextureDescription

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-10 22:43:29 +02:00
1 親 4720e4d65c
コミット 1f64e0e7fc
2ファイル変更
+8 -8

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

+4 -4
ファイルの表示
@@ -9,11 +9,11 @@ public readonly struct D2D1ResourceTextureDescription
/// Creates a new <see cref="D2D1ResourceTextureDescription"/> instance with the specified parameters.
/// </summary>
/// <param name="index">The index of the resource texture the description belongs to.</param>
/// <param name="rank">The rank of the resource texture the description belongs to.</param>
internal D2D1ResourceTextureDescription(int index, int rank)
/// <param name="dimensions">The number of dimensions of the resource texture the description belongs to.</param>
internal D2D1ResourceTextureDescription(int index, int dimensions)
{
Index = index;
Rank = rank;
Dimensions = dimensions;
}
/// <summary>
@@ -24,5 +24,5 @@ public readonly struct D2D1ResourceTextureDescription
/// <summary>
/// Gets the rank of the resource texture the description belongs to.
/// </summary>
public int Rank { get; }
public int Dimensions { get; }
}
+4 -4
ファイルの表示
@@ -195,16 +195,16 @@ public partial class D2D1PixelShaderTests
ReadOnlySpan<D2D1ResourceTextureDescription> span = resourceTextureDescriptions.Span;
Assert.AreEqual(span[0].Index, 5);
Assert.AreEqual(span[0].Rank, 1);
Assert.AreEqual(span[0].Dimensions, 1);
Assert.AreEqual(span[1].Index, 6);
Assert.AreEqual(span[1].Rank, 2);
Assert.AreEqual(span[1].Dimensions, 2);
Assert.AreEqual(span[2].Index, 7);
Assert.AreEqual(span[2].Rank, 3);
Assert.AreEqual(span[2].Dimensions, 3);
Assert.AreEqual(span[3].Index, 8);
Assert.AreEqual(span[3].Rank, 2);
Assert.AreEqual(span[3].Dimensions, 2);
}
[D2DInputCount(4)]