Move ShaderSourceRewriter to shared file

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-09 13:25:22 +02:00
1 親 baffb8fccb
コミット 7e5e695c2a
8ファイル変更
+483 -820

検索条件に一致するファイルはありません

@@ -7,6 +7,7 @@ using ComputeSharp.D2D1.SourceGenerators.SyntaxRewriters;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
using ComputeSharp.SourceGeneration.Mappings;
using ComputeSharp.SourceGeneration.SyntaxRewriters;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -289,7 +290,8 @@ partial class ID2D1ShaderGenerator
discoveredTypes,
staticMethods,
constantDefinitions,
diagnostics);
diagnostics,
isShaderEntryPoint);
// Rewrite the method syntax tree
MethodDeclarationSyntax? processedMethod = shaderSourceRewriter.Visit(methodDeclaration)!.WithoutTrivia();