Handle and emit diagnostic for initializer expressions
このコミットが含まれているのは:
1 親
45455abda9
コミット
1826122849
6ファイル変更
+42
-5
検索条件に一致するファイルはありません
@@ -64,3 +64,4 @@ CMPS0055 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Ser
|
||||
CMPS0056 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPS0057 | ComputeSharp.Shaders | Warning | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPS0058 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
CMPS0059 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
|
||||
@@ -830,4 +830,17 @@ partial class DiagnosticDescriptors
|
||||
isEnabledByDefault: true,
|
||||
description: "The [GloballyCoherent] attribute is only valid on ReadWriteBuffer<T> instance fields in compute shader types.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for an initializer expression.
|
||||
/// </summary>
|
||||
public static readonly DiagnosticDescriptor InitializerExpression = new(
|
||||
id: "CMPS0059",
|
||||
title: "Initializer expression",
|
||||
messageFormat: "An initializer expression cannot be used in a compute shader",
|
||||
category: "ComputeSharp.Shaders",
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "An initializer expression cannot be used in a compute shader.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする