Run dotnet format whitespace

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 228d7d8b7a
コミット e94636b80c
896ファイル変更
+1511 -1511

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

+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using System.Text;
using ComputeSharp.D2D1.SourceGenerators.Models;
@@ -101,4 +101,4 @@ partial class D2DPixelShaderSourceGenerator
.WithBody(methodBlock);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Runtime.CompilerServices;
@@ -188,4 +188,4 @@ partial class D2DPixelShaderSourceGenerator
return bytecode;
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
@@ -119,4 +119,4 @@ public sealed partial class D2DPixelShaderSourceGenerator : IIncrementalGenerato
context.AddSource($"{item.Hierarchy.FilenameHint}.{item.BytecodeInfo.MethodName}.g.cs", text);
});
}
}
}
@@ -45,4 +45,4 @@ public sealed class InvalidAssemblyLevelCompileOptionsAnalyzer : DiagnosticAnaly
}
});
}
}
}
@@ -45,4 +45,4 @@ public sealed class InvalidD2DResourceTextureIndexUseAnalyzer : DiagnosticAnalyz
}
}, SymbolKind.Field);
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGeneration.Diagnostics;
@@ -856,4 +856,4 @@ partial class DiagnosticDescriptors
isEnabledByDefault: true,
description: "A D2D1 shader must be annotated with the [D2DInputCount] attribute.",
helpLinkUri: "https://github.com/Sergio0694/ComputeSharp");
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.D2D1.SourceGenerators.Diagnostics;
@@ -14,4 +14,4 @@ internal static class SuppressionDescriptors
id: "CMPSD2DSPR0001",
suppressedDiagnosticId: "CS0649",
justification: "Fields of type D2D1ResourceTexture1D<T>, D2D1ResourceTexture2D<T> and D2D1ResourceTexture3D<T> are implicitly mapped to resource texture objects into the resulting D2D1 pixel shader for their containing type, and don't need to be initialized");
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis;
@@ -68,4 +68,4 @@ public sealed class D2D1ResourceTextureUninitializedFieldDiagnosticSuppressor :
}
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.SourceGeneration.Helpers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
@@ -49,4 +49,4 @@ partial class ID2D1ShaderGenerator
LiteralExpression(SyntaxKind.StringLiteralExpression, hlslSourceLiteralExpression)))));
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
@@ -389,7 +389,7 @@ partial class ID2D1ShaderGenerator
{
using ImmutableArrayBuilder<(string, string)> builder = ImmutableArrayBuilder<(string, string)>.Rent();
IReadOnlyCollection <INamedTypeSymbol> invalidTypes;
IReadOnlyCollection<INamedTypeSymbol> invalidTypes;
// Process the discovered types
foreach (var type in HlslKnownTypes.GetCustomTypes(types, out invalidTypes))
@@ -646,4 +646,4 @@ partial class ID2D1ShaderGenerator
return hlslBuilder.ToString();
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.__Internals;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
@@ -35,4 +35,4 @@ partial class ID2D1ShaderGenerator
.WithBody(Block(ReturnStatement(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(inputCount)))));
}
}
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.D2D1.__Internals;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -78,4 +78,4 @@ partial class ID2D1ShaderGenerator
LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(1)));
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
@@ -169,4 +169,4 @@ partial class ID2D1ShaderGenerator
combinedInputTypes = combinedBuilder.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.SourceGenerators.Models;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
@@ -48,4 +48,4 @@ partial class ID2D1ShaderGenerator
LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal((int)info.ChannelDepth))))));
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Extensions;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.D2D1.SourceGenerators;
@@ -59,4 +59,4 @@ partial class ID2D1ShaderGenerator
}
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.__Internals;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
@@ -33,4 +33,4 @@ partial class ID2D1ShaderGenerator
.WithBody(Block(ReturnStatement(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal((int)pixelOptions)))));
}
}
}
}
@@ -1,4 +1,4 @@
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Extensions;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.D2D1.SourceGenerators;
@@ -28,4 +28,4 @@ partial class ID2D1ShaderGenerator
}
}
}
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Helpers;
@@ -131,4 +131,4 @@ partial class ID2D1ShaderGenerator
return statements.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Globalization;
using System.Linq;
using System.Text;
@@ -229,4 +229,4 @@ partial class ID2D1ShaderGenerator
return builder.ToString();
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Linq;
@@ -191,4 +191,4 @@ partial class ID2D1ShaderGenerator
return message.NormalizeToSingleLine();
}
}
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Helpers;
@@ -166,4 +166,4 @@ partial class ID2D1ShaderGenerator
return statements.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
@@ -160,4 +160,4 @@ partial class ID2D1ShaderGenerator
}
}
}
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Helpers;
@@ -146,4 +146,4 @@ partial class ID2D1ShaderGenerator
return statements.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
@@ -96,4 +96,4 @@ partial class ID2D1ShaderGenerator
inputDescriptions = inputDescriptionsBuilder.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using System.Collections.Immutable;
using System.Collections.Immutable;
using ComputeSharp.D2D1.__Internals;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Helpers;
@@ -137,4 +137,4 @@ partial class ID2D1ShaderGenerator
return statements.ToImmutable();
}
}
}
}
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using ComputeSharp.D2D1.SourceGenerators.Models;
using ComputeSharp.SourceGeneration.Extensions;
@@ -133,4 +133,4 @@ partial class ID2D1ShaderGenerator
}
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using ComputeSharp.SourceGeneration.Models;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
@@ -73,4 +73,4 @@ partial class ID2D1ShaderGenerator
return hierarchyInfo.GetSyntax(methodDeclaration.AddAttributeLists(attributes.ToArray()));
}
}
}
+3 -3
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
@@ -301,7 +301,7 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
});
// Get the LoadInputDescriptions() info (hierarchy and input descriptions)
IncrementalValuesProvider<((HierarchyInfo Hierarchy, InputDescriptionsInfo InputDescriptions) Info, bool CanUseSkipLocalsInit) > inputDescriptionsInfo =
IncrementalValuesProvider<((HierarchyInfo Hierarchy, InputDescriptionsInfo InputDescriptions) Info, bool CanUseSkipLocalsInit)> inputDescriptionsInfo =
shaderInfoWithErrors
.Select(static (item, _) => (item.Hierarchy, item.InputDescriptions))
.Combine(canUseSkipLocalsInit);
@@ -329,4 +329,4 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
context.AddSource($"{item.Hierarchy.FilenameHint}.{nameof(GetPixelOptions)}.g.cs", compilationUnit.GetText(Encoding.UTF8));
});
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Reflection;
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.D2D1;
@@ -19,4 +19,4 @@ partial class HlslKnownKeywords
knownKeywords.Add(name);
}
}
}
}
+1 -1
ファイルの表示
@@ -50,4 +50,4 @@ partial class HlslKnownMethods
[$"ComputeSharp.D2D1.D2D1ResourceTexture3D`1.Sample({typeof(Float3).FullName})"] = null
};
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
namespace ComputeSharp.SourceGeneration.Mappings;
@@ -28,4 +28,4 @@ partial class HlslKnownProperties
["ComputeSharp.D2D1.D2D1ResourceTexture3D`1.Depth"] = (3, 2)
};
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using ComputeSharp.SourceGeneration.Extensions;
using Microsoft.CodeAnalysis;
@@ -54,4 +54,4 @@ partial class HlslKnownTypes
// The captured field is of a custom struct type
return typeName.ToHlslIdentifierName();
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -46,4 +46,4 @@ internal sealed record D2D1PixelShaderSourceInfo(
x.Diagnostcs.SequenceEqual(y.Diagnostcs);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -70,4 +70,4 @@ internal sealed record D2D1ShaderInfo(
x.Diagnostcs.SequenceEqual(y.Diagnostcs);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -39,4 +39,4 @@ internal sealed record DispatchDataInfo(ImmutableArray<FieldInfo> FieldInfos, in
x.ConstantBufferSizeInBytes == y.ConstantBufferSizeInBytes;
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -45,4 +45,4 @@ internal sealed record EmbeddedBytecodeInfo(string HlslSource, D2D1ShaderProfile
x.Bytecode.SequenceEqual(y.Bytecode);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.InteropServices;
@@ -55,4 +55,4 @@ internal sealed record EmbeddedBytecodeMethodInfo(
x.Bytecode.SequenceEqual(y.Bytecode);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -101,4 +101,4 @@ internal abstract record FieldInfo
}
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using System.Runtime.InteropServices;
using ComputeSharp.SourceGeneration.Extensions;
@@ -62,4 +62,4 @@ internal sealed record HlslShaderMethodSourceInfo(
x.HasErrors == y.HasErrors;
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.D2D1.SourceGenerators.Models;
namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <summary>
/// A model for extracted info on a processed HLSL shader.
@@ -13,4 +13,4 @@ internal sealed record HlslShaderSourceInfo(
D2D1ShaderProfile? ShaderProfile,
D2D1CompileOptions? CompileOptions,
bool IsLinkingSupported,
bool HasErrors);
bool HasErrors);
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
namespace ComputeSharp.D2D1.SourceGenerators.Models;
namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <summary>
/// A model representing an input description for a shader.
@@ -6,4 +6,4 @@
/// <param name="Index">The index of the input resource the description is for.</param>
/// <param name="Filter">The input filter to use.</param>
/// <param name="LevelOfDetail">The level of detail to use.</param>
internal sealed record InputDescription(uint Index, D2D1Filter Filter, int LevelOfDetail);
internal sealed record InputDescription(uint Index, D2D1Filter Filter, int LevelOfDetail);
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
@@ -35,4 +35,4 @@ internal sealed record InputTypesInfo(ImmutableArray<uint> InputTypes)
return x.InputTypes.SequenceEqual(y.InputTypes);
}
}
}
}
+2 -2
ファイルの表示
@@ -1,8 +1,8 @@
namespace ComputeSharp.D2D1.SourceGenerators.Models;
namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <summary>
/// A model representing the output buffer info for a shader.
/// </summary>
/// <param name="BufferPrecision">The buffer precision for the resulting output buffer.</param>
/// <param name="ChannelDepth">The channel depth for the resulting output buffer.</param>
internal sealed record OutputBufferInfo(D2D1BufferPrecision BufferPrecision, D2D1ChannelDepth ChannelDepth);
internal sealed record OutputBufferInfo(D2D1BufferPrecision BufferPrecision, D2D1ChannelDepth ChannelDepth);
+2 -2
ファイルの表示
@@ -1,8 +1,8 @@
namespace ComputeSharp.D2D1.SourceGenerators.Models;
namespace ComputeSharp.D2D1.SourceGenerators.Models;
/// <summary>
/// A model representing a resource texture description for a shader.
/// </summary>
/// <param name="Index">The index of the resource texture resource the description is for.</param>
/// <param name="Rank">The rank of the resource texture.</param>
internal sealed record ResourceTextureDescription(uint Index, uint Rank);
internal sealed record ResourceTextureDescription(uint Index, uint Rank);
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Immutable;
using ComputeSharp.SourceGeneration.Extensions;
using ComputeSharp.SourceGeneration.Helpers;
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using ComputeSharp.SourceGeneration.Mappings;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
@@ -43,4 +43,4 @@ partial class ShaderSourceRewriter
NeedsD2DRequiresScenePositionAttribute = true;
}
}
}
}
+2 -2
ファイルの表示
@@ -1,4 +1,4 @@
using ComputeSharp.SourceGeneration.Mappings;
using ComputeSharp.SourceGeneration.Mappings;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.Operations;
@@ -25,4 +25,4 @@ partial class StaticFieldRewriter
NeedsD2DRequiresScenePositionAttribute = true;
}
}
}
}