Emit a diagnostic for collection expressions

このコミットが含まれているのは:
Sergio Pedri committed 2023-11-29 00:23:37 +01:00
1 親 f934c04955
コミット b266308c8b
6ファイル変更
+60 -3

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

+1
ファイルの表示
@@ -65,3 +65,4 @@ CMPS0056 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Ser
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)
CMPS0060 | ComputeSharp.Shaders | Error | [Documentation](https://github.com/Sergio0694/ComputeSharp)
+13
ファイルの表示
@@ -843,4 +843,17 @@ partial class DiagnosticDescriptors
isEnabledByDefault: true,
description: "An initializer expression cannot be used in a compute shader.",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
/// <summary>
/// Gets a <see cref="DiagnosticDescriptor"/> for a collection expression.
/// </summary>
public static readonly DiagnosticDescriptor CollectionExpression = new(
id: "CMPS0060",
title: "Collection expression",
messageFormat: "A collection expression cannot be used in a compute shader",
category: "ComputeSharp.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A collection expression cannot be used in a compute shader.",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
}