Restored code generation for [ShaderMethod] attribute

このコミットが含まれているのは:
Sergio Pedri committed 2021-07-12 17:42:24 +02:00
1 親 6fbcf21f74
コミット f2c1b79b6a
2ファイル変更
+11 -10

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

+2 -3
ファイルの表示
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
@@ -84,7 +83,7 @@ namespace ComputeSharp.SourceGenerators
AttributeArgument(ArrayExpression(processedTypes)),
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(invokeMethod))),
AttributeArgument(ArrayExpression(processedMethods)),
AttributeArgument(NestedArrayExpression(Array.Empty<string[]>()))))) // TODO
AttributeArgument(NestedArrayExpression(processedConstants)))))
.WithOpenBracketToken(Token(TriviaList(Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))), SyntaxKind.OpenBracketToken, TriviaList()))
.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.AssemblyKeyword))))
.NormalizeWhitespace(eol: "\n")