diff --git a/ComputeSharp.sln b/ComputeSharp.sln
index 7ac58618..91ef1788 100644
--- a/ComputeSharp.sln
+++ b/ComputeSharp.sln
@@ -587,5 +587,6 @@ Global
src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{eb52cb67-4162-4722-874b-44ea8da5450e}*SharedItemsImports = 5
samples\ComputeSharp.SwapChain.Shaders.D2D1\ComputeSharp.SwapChain.Shaders.D2D1.projitems*{f8bf7666-7ccf-4fe4-b055-2eba4bcd4564}*SharedItemsImports = 13
src\ComputeSharp.UI\ComputeSharp.UI.projitems*{fa18ba9f-76bf-4de0-8d24-02fc7657e6cb}*SharedItemsImports = 5
+ src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{febec83a-fe70-4d4b-9b00-76db31e75f17}*SharedItemsImports = 5
EndGlobalSection
EndGlobal
diff --git a/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.Execute.cs b/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.Execute.cs
new file mode 100644
index 00000000..c056ab63
--- /dev/null
+++ b/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.Execute.cs
@@ -0,0 +1,42 @@
+using System.Threading;
+using ComputeSharp.SourceGeneration.Extensions;
+using Microsoft.CodeAnalysis;
+using Microsoft.CodeAnalysis.CSharp;
+using Microsoft.CodeAnalysis.CSharp.Syntax;
+
+namespace ComputeSharp.D2D1.WinUI.SourceGenerators;
+
+///
+partial class CanvasEffectPropertyGenerator
+{
+ ///
+ /// A container for all the logic for .
+ ///
+ private static partial class Execute
+ {
+ ///
+ /// Checks whether an input syntax node is a candidate property declaration for the generator.
+ ///
+ /// The input syntax node to check.
+ /// The used to cancel the operation, if needed.
+ /// Whether is a candidate property declaration.
+ public static bool IsCandidatePropertyDeclaration(SyntaxNode node, CancellationToken token)
+ {
+ // The node must be a property declaration with two accessors
+ if (node is not PropertyDeclarationSyntax { AccessorList.Accessors: { Count: 2 } accessors })
+ {
+ return false;
+ }
+
+ // The accessors must be a get and a set (with any accessibility)
+ if (accessors[0].Kind() is not (SyntaxKind.GetAccessorDeclaration or SyntaxKind.SetAccessorDeclaration) ||
+ accessors[1].Kind() is not (SyntaxKind.GetAccessorDeclaration or SyntaxKind.SetAccessorDeclaration))
+ {
+ return false;
+ }
+
+ // The property must be in a type with a base type (as it must derive from CanvasEffect)
+ return node.Parent?.IsTypeDeclarationWithOrPotentiallyWithBaseTypes() == true;
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.cs b/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.cs
new file mode 100644
index 00000000..281cb62e
--- /dev/null
+++ b/src/ComputeSharp.D2D1.WinUI.SourceGenerators/CanvasEffectPropertyGenerator.cs
@@ -0,0 +1,26 @@
+using Microsoft.CodeAnalysis;
+
+namespace ComputeSharp.D2D1.WinUI.SourceGenerators;
+
+///
+/// A source generator creating implementations of effect properties.
+///
+[Generator(LanguageNames.CSharp)]
+public sealed partial class CanvasEffectPropertyGenerator : IIncrementalGenerator
+{
+ ///
+ /// The name of generator to include in the generated code.
+ ///
+ private const string GeneratorName = "ComputeSharp.D2D1.WinUI.CanvasEffectPropertyGenerator";
+
+ ///
+ public void Initialize(IncrementalGeneratorInitializationContext context)
+ {
+ IncrementalValuesProvider