Merge pull request #737 from Sergio0694/dev/format-t4

Fix whitespace formatting in all T4 files
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-12-25 20:26:14 +00:00
コミット 359064948d
58ファイル変更
+80 -55

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

+4
ファイルの表示
@@ -46,6 +46,10 @@ insert_final_newline = true
[*.xaml]
indent_size = 4
## T4 files (these need CRLT of the T4 generator will add unwanted newlines)
[*.{tt,ttinclude}]
end_of_line = crlf
# C# files
[*.cs]
+1 -1
ファイルの表示
@@ -86,4 +86,4 @@ internal abstract class PixelShaderEffect : CanvasEffect
/// <returns>A shader instance to render.</returns>
public delegate T Factory(TimeSpan elapsedTime, int screenWidth, int screenHeight);
}
}
}
+1 -1
ファイルの表示
@@ -228,4 +228,4 @@ internal sealed class Win32Application
/// </summary>
public required CanvasDrawingSession DrawingSession { get; init; }
}
}
}
@@ -132,4 +132,4 @@ public sealed class CanvasAnimatedControl : Grid, ICanvasAnimatedControl, IDispo
{
return this.canvasControl.ConvertDipsToPixels(dips, dpiRounding);
}
}
}
@@ -12,4 +12,4 @@ public sealed class CanvasAnimatedDrawEventArgs
/// Gets the control's timing information for use by the event handler.
/// </summary>
public required CanvasTimingInformation Timing { get; init; }
}
}
@@ -12,4 +12,4 @@ public interface ICanvasAnimatedControl
/// <inheritdoc cref="CanvasControl.ConvertDipsToPixels"/>
int ConvertDipsToPixels(float dips, CanvasDpiRounding dpiRounding);
}
}
@@ -12,4 +12,4 @@ public readonly struct CanvasTimingInformation
/// Represents the elapsed time, in ticks, for which this control has ever been running.
/// </summary>
public required TimeSpan TotalTime { get; init; }
}
}
+1 -1
ファイルの表示
@@ -14,4 +14,4 @@ public enum RenderingMode
/// Render using Win2D (ie. Direct2D behind the scenes).
/// </summary>
Win2D
}
}
+1 -1
ファイルの表示
@@ -86,4 +86,4 @@ public abstract class PixelShaderEffect : CanvasEffect
/// <returns>A shader instance to render.</returns>
public delegate T Factory(TimeSpan elapsedTime, int screenWidth, int screenHeight);
}
}
}
+1 -1
ファイルの表示
@@ -33,4 +33,4 @@ public sealed class MissingComputeShaderDescriptorOnComputeShaderCodeFixer : Mis
leadingAttributeFullyQualifiedMetadataNames: AttributeTypeNames)
{
}
}
}
+1 -1
ファイルの表示
@@ -219,4 +219,4 @@ public abstract class MissingAttributeCodeFixer : CodeFixProvider
return document.WithSyntaxRoot(syntaxEditor.GetChangedRoot());
}
}
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
using ComputeSharp.Core.Intrinsics.Attributes;
using ComputeSharp.Core.Intrinsics.Attributes;
#pragma warning disable IDE0022
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ output extension=".g.cs"#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#
var MulOverloads = new[]
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
+1 -1
ファイルの表示
@@ -72,4 +72,4 @@ internal static class ArgumentExceptionExtensions
{
throw new ArgumentException(null, parameterName);
}
}
}
+1 -1
ファイルの表示
@@ -58,4 +58,4 @@ internal static class ArgumentNullExceptionExtensions
{
throw new ArgumentNullException(parameterName);
}
}
}
+1 -1
ファイルの表示
@@ -202,4 +202,4 @@ internal static class ArgumentOutOfRangeExceptionExtensions
{
throw new ArgumentOutOfRangeException(parameterName, value, null);
}
}
}
+1 -1
ファイルの表示
@@ -70,4 +70,4 @@ internal static class InvalidOperationExceptionExtensions
{
throw new InvalidOperationException(message);
}
}
}
+1 -1
ファイルの表示
@@ -55,4 +55,4 @@ internal static class NotSupportedExceptionExtensions
{
throw new NotSupportedException();
}
}
}
+1 -1
ファイルの表示
@@ -57,4 +57,4 @@ internal static class ObjectDisposedExceptionExtensions
{
throw new ObjectDisposedException(targetObject.ToString());
}
}
}
+1 -1
ファイルの表示
@@ -58,4 +58,4 @@ internal static class Win32ExceptionExtensions
{
throw new Win32Exception(hresult);
}
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool2", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool3", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool4", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double2", sizeof(double));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double3", sizeof(double));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double4", sizeof(double));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float2", sizeof(float));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float3", sizeof(float));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float4", sizeof(float));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int2", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int3", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int4", sizeof(int));
#>
+1 -1
ファイルの表示
@@ -19,4 +19,4 @@ internal static class UndefinedData
#else
(void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
#endif
}
}
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt2", sizeof(uint));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt3", sizeof(uint));
#>
+1 -1
ファイルの表示
@@ -1,4 +1,4 @@
<#@include file="..\VectorType.ttinclude" #>
<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt4", sizeof(uint));
#>
+1 -1
ファイルの表示
@@ -45,4 +45,4 @@ public sealed class MissingPixelShaderDescriptorOnPixelShaderCodeFixer : Missing
leadingAttributeFullyQualifiedMetadataNames: D2DAttributeTypeNames)
{
}
}
}
+1 -1
ファイルの表示
@@ -102,4 +102,4 @@ internal static class D2D1EffectMetadataParser
return false;
}
}
}
+1 -1
ファイルの表示
@@ -20,4 +20,4 @@ internal static class EncodingExtensions
return encoding.GetBytes(charsPtr, chars.Length, bytesPtr, bytes.Length);
}
}
}
}
+1 -1
ファイルの表示
@@ -89,4 +89,4 @@ internal static unsafe class Win2D
[NativeTypeName("Windows::Foundation::Rect const*")] Rect* sourceBounds,
uint valueCount,
Rect* valueElements);
}
}
+1 -1
ファイルの表示
@@ -58,4 +58,4 @@ internal static unsafe class RcwMarshaller
return unknownObject.CopyTo(nativeObject);
}
}
}
+1 -1
ファイルの表示
@@ -114,4 +114,4 @@ internal static unsafe class ResourceManager
*factoryNative = (ICanvasFactoryNative*)MarshalInterface<ICanvasFactoryNative.Interface>.FromManaged(canvasDeviceActivationFactory);
}
}
}
+15
ファイルの表示
@@ -19,6 +19,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(0, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager1Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -32,6 +33,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(1, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager2Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -45,6 +47,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(2, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager3Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -58,6 +61,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(3, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager4Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -71,6 +75,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(4, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager5Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -84,6 +89,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(5, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager6Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -97,6 +103,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(6, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager7Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -110,6 +117,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(7, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager8Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -123,6 +131,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(8, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager9Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -136,6 +145,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(9, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager10Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -149,6 +159,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(10, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager11Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -162,6 +173,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(11, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager12Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -175,6 +187,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(12, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager13Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -188,6 +201,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(13, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager14Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
@@ -201,6 +215,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(14, data, dataSize);
}
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager15Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
+6
ファイルの表示
@@ -12,6 +12,12 @@ unsafe partial struct PixelShaderEffect
<#
for (int i = 0; i < 16; i++)
{
// Ensure all methods are properly spaced
if (i > 0)
{
WriteLine("");
}
#>
/// <inheritdoc cref="D2D1_PROPERTY_BINDING.getFunction"/>
[UnmanagedCallersOnly]
+1 -1
ファイルの表示
@@ -67,4 +67,4 @@ public sealed unsafe class D3D12MemoryAllocatorFactory : ICustomQueryInterface
};
}
}
}
}
@@ -293,4 +293,4 @@ internal static class HlslDefinitionsSyntaxProcessor
}
}
}
}
}
+1 -1
ファイルの表示
@@ -130,4 +130,4 @@ internal static class HlslSourceSyntaxProcessor
writer.WriteLine(skipIfPresent: true);
}
}
}
+1 -1
ファイルの表示
@@ -41,4 +41,4 @@ internal static class SymbolInfoExtensions
return true;
}
}
}
+1 -1
ファイルの表示
@@ -22,4 +22,4 @@ internal unsafe interface ID3D12ReadOnlyResource
/// <param name="lease">The <see cref="ReferenceTracker.Lease"/> value for the returned <see cref="ID3D12Resource"/> object.</param>
/// <returns>The the underlying <see cref="ID3D12Resource"/> object.</returns>
ID3D12Resource* ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease);
}
}
+1 -1
ファイルの表示
@@ -29,4 +29,4 @@ internal unsafe interface ID3D12ReadWriteResource : ID3D12ReadOnlyResource
ResourceState resourceState,
out ID3D12Resource* d3D12Resource,
out ReferenceTracker.Lease lease);
}
}
@@ -358,4 +358,4 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
await test.RunAsync();
}
}
}
+1 -1
ファイルの表示
@@ -22,4 +22,4 @@ public partial class App : Application
{
UnitTestClient.Run(Environment.CommandLine);
}
}
}
+1 -1
ファイルの表示
@@ -709,4 +709,4 @@ public partial class CanvasEffectTests
return default;
}
}
}
}
+1 -1
ファイルの表示
@@ -517,4 +517,4 @@ public partial class PixelShaderEffectTests
return D2D.GetInput(0) + D2D.GetInput(1);
}
}
}
}
@@ -60,4 +60,4 @@ internal sealed class CSharpAnalyzerWithLanguageVersionTest<TAnalyzer> : CSharpA
return test.RunAsync(CancellationToken.None);
}
}
}
+1 -1
ファイルの表示
@@ -110,4 +110,4 @@ internal static class CSharpGeneratorTest<TGenerator>
// Run all source generators on the input source code
_ = driver.RunGeneratorsAndUpdateCompilation(originalCompilation, out compilation, out diagnostics);
}
}
}