diff --git a/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.Syntax.cs b/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.Syntax.cs
deleted file mode 100644
index 6f0cf8b5..00000000
--- a/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.Syntax.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using ComputeSharp.D2D1.SourceGenerators.Models;
-using ComputeSharp.SourceGeneration.Extensions;
-using ComputeSharp.SourceGeneration.Helpers;
-
-namespace ComputeSharp.D2D1.SourceGenerators;
-
-///
-partial class D2DPixelShaderDescriptorGenerator
-{
- ///
- partial class PixelOptions
- {
- ///
- /// Writes the PixelOptions property.
- ///
- /// The input instance with gathered shader info.
- /// The instance to write into.
- public static void WriteSyntax(D2D1ShaderInfo info, IndentedTextWriter writer)
- {
- // Set the right expression if the pixel options are valid
- string pixelOptionsExpression = (info.PixelOptions is D2D1PixelOptions.None or D2D1PixelOptions.TrivialSampling) switch
- {
- true => $"global::ComputeSharp.D2D1.D2D1PixelOptions.{info.PixelOptions}",
- false => "default"
- };
-
- writer.WriteLine("/// ");
- writer.WriteGeneratedAttributes(GeneratorName);
- writer.WriteLine($"static ComputeSharp.D2D1.D2D1PixelOptions global::ComputeSharp.D2D1.Descriptors.ID2D1PixelShaderDescriptor<{info.Hierarchy.Hierarchy[0].QualifiedName}>.PixelOptions => {pixelOptionsExpression};");
- }
- }
-}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.cs b/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.cs
index 5c974352..5a891287 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/D2DPixelShaderDescriptorGenerator.PixelOptions.cs
@@ -1,4 +1,6 @@
+using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
+using ComputeSharp.SourceGeneration.Helpers;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.D2D1.SourceGenerators;
@@ -9,7 +11,7 @@ partial class D2DPixelShaderDescriptorGenerator
///
/// A helper with all logic to generate the PixelOptions property.
///
- private static partial class PixelOptions
+ private static class PixelOptions
{
///
/// Extracts the pixel options for the current shader.
@@ -27,5 +29,24 @@ partial class D2DPixelShaderDescriptorGenerator
pixelOptions = D2D1PixelOptions.None;
}
}
+
+ ///
+ /// Writes the PixelOptions property.
+ ///
+ /// The input instance with gathered shader info.
+ /// The instance to write into.
+ public static void WriteSyntax(D2D1ShaderInfo info, IndentedTextWriter writer)
+ {
+ // Set the right expression if the pixel options are valid
+ string pixelOptionsExpression = (info.PixelOptions is D2D1PixelOptions.None or D2D1PixelOptions.TrivialSampling) switch
+ {
+ true => $"global::ComputeSharp.D2D1.D2D1PixelOptions.{info.PixelOptions}",
+ false => "default"
+ };
+
+ writer.WriteLine("/// ");
+ writer.WriteGeneratedAttributes(GeneratorName);
+ writer.WriteLine($"static ComputeSharp.D2D1.D2D1PixelOptions global::ComputeSharp.D2D1.Descriptors.ID2D1PixelShaderDescriptor<{info.Hierarchy.Hierarchy[0].QualifiedName}>.PixelOptions => {pixelOptionsExpression};");
+ }
}
}
\ No newline at end of file