Restore <TreatWarningsAsErrors> and fix warnings
このコミットが含まれているのは:
1 親
ec901922db
コミット
d8a4a7412d
25ファイル変更
+49
-35
検索条件に一致するファイルはありません
@@ -11,7 +11,7 @@ internal static class DiagnosticsExtensions
|
||||
/// <summary>
|
||||
/// Adds a new diagnostics to the current compilation.
|
||||
/// </summary>
|
||||
/// <param name="context">The <see cref="GeneratorEditContext"/> instance currently in use.</param>
|
||||
/// <param name="context">The <see cref="GeneratorExecutionContext"/> instance currently in use.</param>
|
||||
/// <param name="descriptor">The input <see cref="DiagnosticDescriptor"/> for the diagnostics to create.</param>
|
||||
/// <param name="symbol">The source <see cref="ISymbol"/> to attach the diagnostics to.</param>
|
||||
/// <param name="args">The optional arguments for the formatted message to include.</param>
|
||||
@@ -27,7 +27,7 @@ internal static class DiagnosticsExtensions
|
||||
/// <summary>
|
||||
/// Adds a new diagnostics to the current compilation.
|
||||
/// </summary>
|
||||
/// <param name="context">The <see cref="GeneratorEditContext"/> instance currently in use.</param>
|
||||
/// <param name="context">The <see cref="GeneratorExecutionContext"/> instance currently in use.</param>
|
||||
/// <param name="descriptor">The input <see cref="DiagnosticDescriptor"/> for the diagnostics to create.</param>
|
||||
/// <param name="node">The source <see cref="SyntaxNode"/> to attach the diagnostics to.</param>
|
||||
/// <param name="args">The optional arguments for the formatted message to include.</param>
|
||||
|
||||
@@ -21,7 +21,7 @@ internal static class SyntaxFactoryHelper
|
||||
/// </code>
|
||||
/// </para>
|
||||
/// </summary>
|
||||
/// <param name="values">The input sequence of <see cref="string"/> groups.</param>
|
||||
/// <param name="groups">The input sequence of <see cref="string"/> groups.</param>
|
||||
/// <returns>An <see cref="ArrayCreationExpressionSyntax"/> instance with the described contents.</returns>
|
||||
[Pure]
|
||||
public static ArrayCreationExpressionSyntax NestedArrayExpression(IEnumerable<(string A, string B)> groups)
|
||||
|
||||
@@ -147,7 +147,7 @@ public sealed partial class IShaderGenerator : ISourceGenerator
|
||||
/// <summary>
|
||||
/// Creates a <see cref="MethodDeclarationSyntax"/> instance for the <c>GetDispatchId</c> method.
|
||||
/// </summary>
|
||||
/// <param name="structDeclarationSymbol">The <see cref="INamedTypeSymbol"/> for <paramref name="structDeclaration"/>.</param>
|
||||
/// <param name="structDeclarationSymbol">The <see cref="INamedTypeSymbol"/> for the input struct declaration.</param>
|
||||
/// <returns>The resulting <see cref="MethodDeclarationSyntax"/> instance for the <c>GetDispatchId</c> method.</returns>
|
||||
private static partial MethodDeclarationSyntax CreateGetDispatchIdMethod(INamedTypeSymbol structDeclarationSymbol);
|
||||
|
||||
@@ -155,7 +155,7 @@ public sealed partial class IShaderGenerator : ISourceGenerator
|
||||
/// Creates a <see cref="MethodDeclarationSyntax"/> instance for the <c>LoadDispatchDataMethod</c> method.
|
||||
/// </summary>
|
||||
/// <param name="context">The input <see cref="GeneratorExecutionContext"/> instance to use.</param>
|
||||
/// <param name="structDeclarationSymbol">The <see cref="INamedTypeSymbol"/> for <paramref name="structDeclaration"/>.</param>
|
||||
/// <param name="structDeclarationSymbol">The <see cref="INamedTypeSymbol"/> for the input struct declaration.</param>
|
||||
/// <param name="discoveredResources">The collection of discovered resources in the current shader type.</param>
|
||||
/// <param name="root32BitConstantsCount">The total number of 32 bit root constants being loaded for the current shader type.</param>
|
||||
/// <returns>The resulting <see cref="MethodDeclarationSyntax"/> instance for the <c>LoadDispatchDataMethod</c> method.</returns>
|
||||
|
||||
@@ -414,11 +414,12 @@ internal static class HlslKnownMembers
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tries to get the mapped HLSL-compatible indexer vector type name for the input indexer name.
|
||||
/// Tries to get the mapped rank and axis for a given indexer name.
|
||||
/// </summary>
|
||||
/// <param name="name">The input fully qualified indexer name.</param>
|
||||
/// <param name="mapped">The mapped type name, if one is found.</param>
|
||||
/// <returns>The HLSL-compatible type name that can be used in an HLSL shader for the given indexer.</returns>
|
||||
/// <param name="rank">The resulting indexer rank, if found.</param>
|
||||
/// <param name="axis">The resulting indexer axis, if found.</param>
|
||||
/// <returns>Whether or not a rank and axis could be resolved by the input indexer name.</returns>
|
||||
[Pure]
|
||||
public static bool TryGetAccessorRankAndAxis(string name, out int rank, out int axis)
|
||||
{
|
||||
|
||||
@@ -336,7 +336,8 @@ internal static class HlslKnownTypes
|
||||
/// <summary>
|
||||
/// Gets the mapped HLSL-compatible type name for the input type name.
|
||||
/// </summary>
|
||||
/// <param name="name">The input type name to map.</param>
|
||||
/// <param name="originalName">The input type name to map.</param>
|
||||
/// <param name="mappedName">The resulting mapped type name, if found.</param>
|
||||
/// <returns>The HLSL-compatible type name that can be used in an HLSL shader.</returns>
|
||||
public static bool TryGetMappedName(string originalName, out string? mappedName)
|
||||
{
|
||||
|
||||
@@ -114,7 +114,7 @@ internal sealed class ShaderSourceRewriter : HlslSourceRewriter
|
||||
public bool IsGroupIdsUsed { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets whether or not the shader uses <see cref="GroupIds.Index/> at least once.
|
||||
/// Gets whether or not the shader uses <see cref="GroupIds.Index"/> at least once.
|
||||
/// </summary>
|
||||
public bool IsGroupIdsIndexUsed { get; private set; }
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする