Add MissingD2DCompileOptionsOnD2DPixelShaderSourceMethodAnalyzer
このコミットが含まれているのは:
1 親
5cdb71684c
コミット
8c061c5b9e
3ファイル変更
+57
-9
検索条件に一致するファイルはありません
@@ -83,10 +83,9 @@ partial class D2DPixelShaderSourceGenerator
|
||||
/// <summary>
|
||||
/// Extracts the compile options for the current shader.
|
||||
/// </summary>
|
||||
/// <param name="diagnostics">The collection of produced <see cref="DiagnosticInfo"/> instances.</param>
|
||||
/// <param name="methodSymbol">The input <see cref="IMethodSymbol"/> instance to process.</param>
|
||||
/// <returns>The compile options to use to compile the shader, if present.</returns>
|
||||
public static D2D1CompileOptions GetCompileOptions(ImmutableArrayBuilder<DiagnosticInfo> diagnostics, IMethodSymbol methodSymbol)
|
||||
public static D2D1CompileOptions GetCompileOptions(IMethodSymbol methodSymbol)
|
||||
{
|
||||
if (methodSymbol.TryGetAttributeWithFullyQualifiedMetadataName("ComputeSharp.D2D1.D2DCompileOptionsAttribute", out AttributeData? attributeData))
|
||||
{
|
||||
@@ -98,12 +97,6 @@ partial class D2DPixelShaderSourceGenerator
|
||||
return (D2D1CompileOptions)attributeData.ConstructorArguments[0].Value!;
|
||||
}
|
||||
|
||||
diagnostics.Add(
|
||||
MissingCompileOptionsForD2DPixelShaderSource,
|
||||
methodSymbol,
|
||||
methodSymbol.Name,
|
||||
methodSymbol.ContainingType);
|
||||
|
||||
return D2D1CompileOptions.Default;
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする