diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs index 8ed7c690..43e2d6c7 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs @@ -9,11 +9,11 @@ public readonly struct D2D1ResourceTextureDescription /// Creates a new instance with the specified parameters. /// /// The index of the resource texture the description belongs to. - /// The rank of the resource texture the description belongs to. - internal D2D1ResourceTextureDescription(int index, int rank) + /// The number of dimensions of the resource texture the description belongs to. + internal D2D1ResourceTextureDescription(int index, int dimensions) { Index = index; - Rank = rank; + Dimensions = dimensions; } /// @@ -24,5 +24,5 @@ public readonly struct D2D1ResourceTextureDescription /// /// Gets the rank of the resource texture the description belongs to. /// - public int Rank { get; } + public int Dimensions { get; } } diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs index 7b3d1e3b..3028574b 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1PixelShaderTests.cs @@ -195,16 +195,16 @@ public partial class D2D1PixelShaderTests ReadOnlySpan 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)]