diff --git a/src/ComputeSharp.D2D1/Attributes/D2DEffectIdAttribute.cs b/src/ComputeSharp.D2D1/Attributes/D2DEffectIdAttribute.cs
new file mode 100644
index 00000000..07f3556d
--- /dev/null
+++ b/src/ComputeSharp.D2D1/Attributes/D2DEffectIdAttribute.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace ComputeSharp.D2D1;
+
+///
+/// An attribute for a D2D1 shader indicating the id of the shader effect to create.
+///
+///
+/// This only applies to effects created from .
+///
+[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
+public sealed class D2DEffectIdAttribute : Attribute
+{
+ ///
+ /// Creates a new instance of the type with the specified arguments.
+ ///
+ /// The value for the effect id.
+ public D2DEffectIdAttribute(string value)
+ {
+ Value = Guid.Parse(value);
+ }
+
+ ///
+ /// Gets the number of texture inputs for the shader.
+ ///
+ public Guid Value { get; }
+}
\ No newline at end of file