Remove non-incremental source rewriters

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-08 11:17:06 +01:00
1 親 fcbe997d78
コミット 5c5c3439cb
11ファイル変更
+66 -1371

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

+4 -4
ファイルの表示
@@ -239,7 +239,7 @@ public sealed partial class IShaderGenerator
false => $"static {HlslKnownTypes.GetMappedName(typeSymbol)}"
};
StaticFieldRewriter2 staticFieldRewriter = new(
StaticFieldRewriter staticFieldRewriter = new(
semanticModel,
discoveredTypes,
constantDefinitions,
@@ -360,7 +360,7 @@ public sealed partial class IShaderGenerator
methodDeclarationSymbol.Parameters.Length == 0);
// Create the source rewriter for the current method
ShaderSourceRewriter2 shaderSourceRewriter = new(
ShaderSourceRewriter shaderSourceRewriter = new(
structDeclarationSymbol,
semanticModel,
discoveredTypes,
@@ -388,8 +388,8 @@ public sealed partial class IShaderGenerator
{
processedMethod = isComputeShader switch
{
true => new ExecuteMethodRewriter2.Compute(shaderSourceRewriter).Visit(processedMethod)!,
false => new ExecuteMethodRewriter2.Pixel(shaderSourceRewriter).Visit(processedMethod)!
true => new ExecuteMethodRewriter.Compute(shaderSourceRewriter).Visit(processedMethod)!,
false => new ExecuteMethodRewriter.Pixel(shaderSourceRewriter).Visit(processedMethod)!
};
entryPoint = processedMethod.NormalizeWhitespace(eol: "\n").ToFullString();