Fixed build error with source attribute
このコミットが含まれているのは:
1 親
08a82a1627
コミット
679e6b6d19
2ファイル変更
+2
-1
検索条件に一致するファイルはありません
@@ -9,7 +9,7 @@ namespace ComputeSharp
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[Obsolete("This attribute is meant to be used from the source generator only", true)]
|
||||
[Obsolete("This attribute is meant to be used from the source generator only")]
|
||||
public sealed class IComputeShaderSourceAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -65,6 +65,7 @@ namespace ComputeSharp.SourceGenerators
|
||||
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(structFullName))),
|
||||
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(methodDeclarationSymbol.Name))),
|
||||
AttributeArgument(LiteralExpression(SyntaxKind.StringLiteralExpression, Literal(methodSource))))))
|
||||
.WithOpenBracketToken(Token(TriviaList(Trivia(PragmaWarningDirectiveTrivia(Token(SyntaxKind.DisableKeyword), true))), SyntaxKind.OpenBracketToken, TriviaList()))
|
||||
.WithTarget(AttributeTargetSpecifier(Token(SyntaxKind.AssemblyKeyword))))
|
||||
.NormalizeWhitespace()
|
||||
.ToFullString();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする