Added errors for invalid group shared fields
このコミットが含まれているのは:
1 親
4b280bf2b6
コミット
4fe3c857be
4ファイル変更
+69
-6
検索条件に一致するファイルはありません
@@ -22,5 +22,37 @@ namespace ComputeSharp.SourceGenerators.Diagnostics
|
||||
isEnabledByDefault: true,
|
||||
description: "A type representing a compute shader contains a field of a type that is not supported in HLSL.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for an invalid group shared field type.
|
||||
/// <para>
|
||||
/// Format: <c>"The compute shader of type {0} contains a group shared field \"{1}\" of an invalid type {2}"</c>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static DiagnosticDescriptor InvalidGroupSharedFieldType { get; } = new(
|
||||
id: "CMPS0002",
|
||||
title: "Invalid group shared field type",
|
||||
messageFormat: "The compute shader of type {0} contains a group shared field \"{1}\" of an invalid type {2} (it must be an array)",
|
||||
category: typeof(IComputeShader).FullName,
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "A group shared field must be of an array type.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for an invalid group shared field element type.
|
||||
/// <para>
|
||||
/// Format: <c>"The compute shader of type {0} contains a group shared field \"{1}\" of an invalid element type {2}"</c>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static DiagnosticDescriptor InvalidGroupSharedFieldElementType { get; } = new(
|
||||
id: "CMPS0003",
|
||||
title: "Invalid group shared field type",
|
||||
messageFormat: "The compute shader of type {0} contains a group shared field \"{1}\" of an invalid type {2} (it must be a primitive or unmanaged type)",
|
||||
category: typeof(IComputeShader).FullName,
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "A group shared field element must be of a primitive or unmanaged type.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする