Added diagnostics for non constant matrix swizzling indices
このコミットが含まれているのは:
1 親
e200378d1c
コミット
e930c969cb
6ファイル変更
+123
-10
検索条件に一致するファイルはありません
@@ -587,5 +587,18 @@ namespace ComputeSharp.SourceGenerators.Diagnostics
|
||||
isEnabledByDefault: true,
|
||||
description: $"The {nameof(ShaderMethodSourceGenerator)} generator encountered an error while processing a method, and using it in a shader might result in a runtime crash. Please report this issue at https://github.com/Sergio0694/ComputeSharp/issues.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="DiagnosticDescriptor"/> for an incorrect matrix swizzling property argument.
|
||||
/// </summary>
|
||||
public static readonly DiagnosticDescriptor NonConstantMatrixSwizzledIndex = new(
|
||||
id: "CMPS0042",
|
||||
title: "Non constant matrix swizzled property argument",
|
||||
messageFormat: "The arguments in a swizzled indexer for a matrix type must be compile-time constants",
|
||||
category: typeof(ShaderMethodSourceGenerator).FullName,
|
||||
defaultSeverity: DiagnosticSeverity.Error,
|
||||
isEnabledByDefault: true,
|
||||
description: "The arguments in a swizzled indexer for a matrix type must be compile-time constants.",
|
||||
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする