Add MissingComputeShaderDescriptorOnComputeShaderAnalyzer
このコミットが含まれているのは:
1 親
6fe1ee5743
コミット
6baf3339fe
3ファイル変更
+86
検索条件に一致するファイルはありません
@@ -7,6 +7,11 @@ namespace ComputeSharp.SourceGeneration.Diagnostics;
|
||||
/// <inheritdoc/>
|
||||
partial class DiagnosticDescriptors
|
||||
{
|
||||
/// <summary>
|
||||
/// The diagnostic id for <see cref="MissingComputeShaderDescriptorOnComputeShaderType"/>.
|
||||
/// </summary>
|
||||
public const string MissingComputeShaderDescriptorOnComputeShaderTypeId = "CMPS0053";
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for an invalid shader field.
|
||||
/// <para>
|
||||
@@ -730,4 +735,21 @@ partial class DiagnosticDescriptors
|
||||
description: "Unsafe blocks must be enabled for the source generators to emit valid code (the <AllowUnsafeBlocks>true</AllowUnsafeBlocks> option must be set in the .csproj/.props file).",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp",
|
||||
customTags: WellKnownDiagnosticTags.CompilationEnd);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for when a compute shader type doesn't have an associated descriptor.
|
||||
/// <para>
|
||||
/// Format: <c>"The compute shader of type {0} does not have an associated descriptor (it can be autogenerated via the [GeneratedComputeShaderDescriptor] attribute)"</c>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static readonly DiagnosticDescriptor MissingComputeShaderDescriptorOnComputeShaderType = new DiagnosticDescriptor(
|
||||
id: MissingComputeShaderDescriptorOnComputeShaderTypeId,
|
||||
title: "Missing descriptor for compute pixel shader type",
|
||||
messageFormat: "The compute shader of type {0} does not have an associated descriptor (it can be autogenerated via the [GeneratedComputeShaderDescriptor] attribute)",
|
||||
category: "ComputeSharp.Shaders",
|
||||
defaultSeverity: DiagnosticSeverity.Warning,
|
||||
isEnabledByDefault: true,
|
||||
description: "All compute shader types must have an associated descriptor (it can be autogenerated via the [GeneratedComputeShaderDescriptor] attribute).",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp",
|
||||
customTags: WellKnownDiagnosticTags.CompilationEnd);
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする