diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs
index 9c1c04c9..51c7c47a 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1InputDescription.cs
@@ -1,6 +1,4 @@
-using System;
-
-namespace ComputeSharp.D2D1.Interop;
+namespace ComputeSharp.D2D1.Interop;
///
/// A type containing info on a description for a given D2D1 pixel shader input resource.
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs
new file mode 100644
index 00000000..8ed7c690
--- /dev/null
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ResourceTextureDescription.cs
@@ -0,0 +1,28 @@
+namespace ComputeSharp.D2D1.Interop;
+
+///
+/// A type containing info on a description for a given D2D1 pixel shader resource resource.
+///
+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)
+ {
+ Index = index;
+ Rank = rank;
+ }
+
+ ///
+ /// Gets the index of the resource texture the description belongs to.
+ ///
+ public int Index { get; }
+
+ ///
+ /// Gets the rank of the resource texture the description belongs to.
+ ///
+ public int Rank { get; }
+}
diff --git a/src/ComputeSharp.D2D1/Shaders/Loaders/D2D1BufferSizeDispatchDataLoader.cs b/src/ComputeSharp.D2D1/Shaders/Loaders/D2D1BufferSizeDispatchDataLoader.cs
index 98a95f83..b18fcc4e 100644
--- a/src/ComputeSharp.D2D1/Shaders/Loaders/D2D1BufferSizeDispatchDataLoader.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Loaders/D2D1BufferSizeDispatchDataLoader.cs
@@ -22,7 +22,7 @@ internal unsafe struct D2D1BufferSizeDispatchDataLoader : ID2D1DispatchDataLoade
///
/// The size of the constant buffer.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public int GetConstantBufferSize()
+ private int GetConstantBufferSize()
{
return this.size;
}