diff --git a/src/ComputeSharp.D2D1/Attributes/D2DCompileOptionsAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DCompileOptionsAttribute.cs
index a2ef6fee..fe4568a0 100644
--- a/src/ComputeSharp.D2D1/Attributes/D2DCompileOptionsAttribute.cs
+++ b/src/ComputeSharp.D2D1/Attributes/D2DCompileOptionsAttribute.cs
@@ -15,8 +15,6 @@ namespace ComputeSharp.D2D1;
///
///
///
-///
-///
/// Note that the is always enabled automatically and does not need to be
/// specified. This option is mandatory, as the generated code to load the constant buffer from a shader assumes the layout
/// for matrix types is row major. For the same reason, using is not
diff --git a/src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs
new file mode 100644
index 00000000..7240d9f8
--- /dev/null
+++ b/src/ComputeSharp.D2D1/Attributes/D2DGeneratedShaderMarshallerAttribute.cs
@@ -0,0 +1,24 @@
+using System;
+
+namespace ComputeSharp.D2D1;
+
+///
+/// An attribute that indicates that a given D2D1 shader should have its associated marshalling code being generated.
+///
+/// This attribute can be used on shader types that are declared as :
+///
+/// [D2DGeneratedShaderMarshaller]
+/// partial struct MyShader : ID2D1PixelShader
+/// {
+/// }
+///
+///
+///
+/// When a shader is annotated with , the source generator will also add
+/// to its implemented interfaces, and implement its APIs automatically.
+///
+///
+[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
+public sealed class D2DGeneratedShaderMarshallerAttribute : Attribute
+{
+}
\ No newline at end of file