Fix shader attribute diagnostics for input-less shaders

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:31 +02:00
1 親 5899a6667a
コミット 993308f6e0
2ファイル変更
+10 -12

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

+3 -3
ファイルの表示
@@ -475,13 +475,13 @@ internal static class DiagnosticDescriptors
/// <summary>
/// Gets a <see cref="DiagnosticDescriptor"/> for a invalid D2D input count value.
/// <para>
/// Format: <c>"The D2D1 shader of type {0} is using an incorrect value for [D2DInputCount] (the number of inputs must be in the [1, 8] range)"</c>.
/// Format: <c>"The D2D1 shader of type {0} is using an incorrect value for [D2DInputCount] (the number of inputs must be in the [0, 8] range)"</c>.
/// </para>
/// </summary>
public static readonly DiagnosticDescriptor InvalidD2DInputCount = new DiagnosticDescriptor(
id: "CMPSD2D0035",
title: "Invalid D2D1 shader input count",
messageFormat: "The D2D1 shader of type {0} is using an incorrect value for [D2DInputCount] (the number of inputs must be in the [1, 8] range)",
messageFormat: "The D2D1 shader of type {0} is using an incorrect value for [D2DInputCount] (the number of inputs must be in the [0, 8] range)",
category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
@@ -549,6 +549,6 @@ internal static class DiagnosticDescriptors
category: "ComputeSharp.D2D1.Shaders",
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "A D2D1 shader must have all the indices of its simple and complex inputs in the valid range (between 1 and the number of declared inputs).",
description: "A D2D1 shader must have all the indices of its simple and complex inputs in the valid range (between 0 and the number of declared inputs).",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
}