diff --git a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs index 7f85ac19..01dbe00c 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/HlslSourceRewriter.cs @@ -65,11 +65,6 @@ internal abstract partial class HlslSourceRewriter : CSharpSyntaxRewriter Diagnostics = diagnostics; } - /// - /// Gets whether or not the shader needs the [D2DRequiresScenePosition] attribute. - /// - public bool NeedsD2DRequiresScenePositionAttribute { get; protected set; } - /// public override SyntaxNode VisitCastExpression(CastExpressionSyntax node) { diff --git a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs index 44c8e47f..99cad0f2 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/ShaderSourceRewriter.cs @@ -96,6 +96,11 @@ internal sealed class ShaderSourceRewriter : HlslSourceRewriter /// public IReadOnlyDictionary LocalFunctions => this.localFunctions; + /// + /// Gets whether or not the shader needs the [D2DRequiresScenePosition] attribute. + /// + public bool NeedsD2DRequiresScenePositionAttribute { get; private set; } + /// public MethodDeclarationSyntax? Visit(MethodDeclarationSyntax? node) { diff --git a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs index a238b6f6..16ca9bd5 100644 --- a/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs +++ b/src/ComputeSharp.D2D1.SourceGenerators/SyntaxRewriters/StaticFieldRewriter.cs @@ -35,6 +35,9 @@ internal sealed class StaticFieldRewriter : HlslSourceRewriter { } + /// + public bool NeedsD2DRequiresScenePositionAttribute { get; private set; } + /// public ExpressionSyntax? Visit(VariableDeclaratorSyntax? node) {