Enable source generator support for DispatchAxis

このコミットが含まれているのは:
Sergio Pedri committed 2022-01-05 13:32:21 +01:00
1 親 74793ab9f0
コミット 3e7a3c5b7c
15ファイル変更
+75 -20

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

+16
ファイルの表示
@@ -662,4 +662,20 @@ internal static class DiagnosticDescriptors
isEnabledByDefault: true,
description: "When dynamic shader compilation is not supported (ie. when ComputeSharp.Dynamic is not referenced), all shaders need to be annotated as having embedded bytecode (using the [EmbeddedBytecode] attribute).",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
/// <summary>
/// Gets a <see cref="DiagnosticDescriptor"/> for an embedded bytecode shader with an invalid dispatch axis value.
/// <para>
/// Format: <c>"The shader of type {0} is annotated with an invalid dispatch axis value"</c>.
/// </para>
/// </summary>
public static readonly DiagnosticDescriptor InvalidEmbeddedBytecodeDispatchAxis = new(
id: "CMPS0048",
title: "Invalid dispatch axis for shader with embedded bytecode",
messageFormat: "The shader of type {0} is annotated with with an invalid dispatch axis value",
category: typeof(IShaderGenerator).FullName,
defaultSeverity: DiagnosticSeverity.Error,
isEnabledByDefault: true,
description: "The dispatch axis value for a shader marked as embedded bytecode have to be valid (flags are not supported).",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
}