Added diagnostics for shaders exceeding root signature size
このコミットが含まれているのは:
1 親
33c1415f2d
コミット
a94e5559a0
4ファイル変更
+67
-2
検索条件に一致するファイルはありません
@@ -630,5 +630,21 @@ namespace ComputeSharp.SourceGenerators.Diagnostics
|
||||
isEnabledByDefault: true,
|
||||
description: "Property declarations cannot be used in a compute shader.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for a shader with a root signature that is too large.
|
||||
/// <para>
|
||||
/// Format: <c>"The compute shader of type {0} has exceeded the maximum allowed size for captured values and resources"</c>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public static readonly DiagnosticDescriptor ShaderDispatchDataSizeExceeded = new(
|
||||
id: "CMPS0046",
|
||||
title: "Shader dispatch data size exceeded",
|
||||
messageFormat: "The compute shader of type {0} has exceeded the maximum allowed size for captured values and resources",
|
||||
category: typeof(IComputeShader).FullName,
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "The compute shader of type {0} has exceeded the maximum allowed size for captured values and resources.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする