diff --git a/.editorconfig b/.editorconfig
index 30b60428..bcfa1529 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -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]
diff --git a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/PixelShaderEffect.cs b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/PixelShaderEffect.cs
index d8d8501e..efdfd577 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/PixelShaderEffect.cs
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/PixelShaderEffect.cs
@@ -86,4 +86,4 @@ internal abstract class PixelShaderEffect : CanvasEffect
/// A shader instance to render.
public delegate T Factory(TimeSpan elapsedTime, int screenWidth, int screenHeight);
}
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
index 18378ed5..0c6b9299 100644
--- a/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
+++ b/samples/ComputeSharp.SwapChain.D2D1.Cli/Backend/Win32Application.cs
@@ -228,4 +228,4 @@ internal sealed class Win32Application
///
public required CanvasDrawingSession DrawingSession { get; init; }
}
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedControl.cs b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedControl.cs
index 24002362..bab1abb3 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedControl.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedControl.cs
@@ -132,4 +132,4 @@ public sealed class CanvasAnimatedControl : Grid, ICanvasAnimatedControl, IDispo
{
return this.canvasControl.ConvertDipsToPixels(dips, dpiRounding);
}
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedDrawEventArgs.cs b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedDrawEventArgs.cs
index 10deefba..7c8898cc 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedDrawEventArgs.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/CanvasAnimatedDrawEventArgs.cs
@@ -12,4 +12,4 @@ public sealed class CanvasAnimatedDrawEventArgs
/// Gets the control's timing information for use by the event handler.
///
public required CanvasTimingInformation Timing { get; init; }
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/ICanvasAnimatedControl.cs b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/ICanvasAnimatedControl.cs
index e7eb1646..27092438 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/ICanvasAnimatedControl.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI.Xaml/ICanvasAnimatedControl.cs
@@ -12,4 +12,4 @@ public interface ICanvasAnimatedControl
///
int ConvertDipsToPixels(float dips, CanvasDpiRounding dpiRounding);
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI/CanvasTimingInformation.cs b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI/CanvasTimingInformation.cs
index 54e3a9c8..43b1b363 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI/CanvasTimingInformation.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Controls/Microsoft.Graphics.Canvas.UI/CanvasTimingInformation.cs
@@ -12,4 +12,4 @@ public readonly struct CanvasTimingInformation
/// Represents the elapsed time, in ticks, for which this control has ever been running.
///
public required TimeSpan TotalTime { get; init; }
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs b/samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs
index fd33ab59..68f0ec13 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Enums/RenderingMode.cs
@@ -14,4 +14,4 @@ public enum RenderingMode
/// Render using Win2D (ie. Direct2D behind the scenes).
///
Win2D
-}
+}
\ No newline at end of file
diff --git a/samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs b/samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs
index 3d61ad23..a6ad7b84 100644
--- a/samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs
+++ b/samples/ComputeSharp.SwapChain.WinUI/Shaders/PixelShaderEffect.cs
@@ -86,4 +86,4 @@ public abstract class PixelShaderEffect : CanvasEffect
/// A shader instance to render.
public delegate T Factory(TimeSpan elapsedTime, int screenWidth, int screenHeight);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.CodeFixers/MissingComputeShaderDescriptorOnComputeShaderCodeFixer.cs b/src/ComputeSharp.CodeFixers/MissingComputeShaderDescriptorOnComputeShaderCodeFixer.cs
index a490312b..76c174af 100644
--- a/src/ComputeSharp.CodeFixers/MissingComputeShaderDescriptorOnComputeShaderCodeFixer.cs
+++ b/src/ComputeSharp.CodeFixers/MissingComputeShaderDescriptorOnComputeShaderCodeFixer.cs
@@ -33,4 +33,4 @@ public sealed class MissingComputeShaderDescriptorOnComputeShaderCodeFixer : Mis
leadingAttributeFullyQualifiedMetadataNames: AttributeTypeNames)
{
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.CodeFixing/MissingAttributeCodeFixer.cs b/src/ComputeSharp.CodeFixing/MissingAttributeCodeFixer.cs
index a4f59729..ef98cdb6 100644
--- a/src/ComputeSharp.CodeFixing/MissingAttributeCodeFixer.cs
+++ b/src/ComputeSharp.CodeFixing/MissingAttributeCodeFixer.cs
@@ -219,4 +219,4 @@ public abstract class MissingAttributeCodeFixer : CodeFixProvider
return document.WithSyntaxRoot(syntaxEditor.GetChangedRoot());
}
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
index 42845080..848410e7 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.g.cs
@@ -1,4 +1,4 @@
-using ComputeSharp.Core.Intrinsics.Attributes;
+using ComputeSharp.Core.Intrinsics.Attributes;
#pragma warning disable IDE0022
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
index 51a0a0e8..0619fda2 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Casts.tt
@@ -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"#>
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude b/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude
index ab6c8918..aa4fef2f 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.MulOverloads.ttinclude
@@ -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[]
diff --git a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.ttinclude b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.ttinclude
index cb6d0611..4e5a7356 100644
--- a/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.ttinclude
+++ b/src/ComputeSharp.Core/Intrinsics/Hlsl.Void.ttinclude
@@ -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" #>
diff --git a/src/ComputeSharp.Core/Polyfills/ArgumentExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/ArgumentExceptionExtensions.cs
index f13c0f3f..f9bbeffc 100644
--- a/src/ComputeSharp.Core/Polyfills/ArgumentExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/ArgumentExceptionExtensions.cs
@@ -72,4 +72,4 @@ internal static class ArgumentExceptionExtensions
{
throw new ArgumentException(null, parameterName);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/ArgumentNullExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/ArgumentNullExceptionExtensions.cs
index 640cc2ec..066dbeee 100644
--- a/src/ComputeSharp.Core/Polyfills/ArgumentNullExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/ArgumentNullExceptionExtensions.cs
@@ -58,4 +58,4 @@ internal static class ArgumentNullExceptionExtensions
{
throw new ArgumentNullException(parameterName);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/ArgumentOutOfRangeExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/ArgumentOutOfRangeExceptionExtensions.cs
index 1533c5cc..af55757a 100644
--- a/src/ComputeSharp.Core/Polyfills/ArgumentOutOfRangeExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/ArgumentOutOfRangeExceptionExtensions.cs
@@ -202,4 +202,4 @@ internal static class ArgumentOutOfRangeExceptionExtensions
{
throw new ArgumentOutOfRangeException(parameterName, value, null);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/InvalidOperationExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/InvalidOperationExceptionExtensions.cs
index c5f082c6..60f73b49 100644
--- a/src/ComputeSharp.Core/Polyfills/InvalidOperationExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/InvalidOperationExceptionExtensions.cs
@@ -70,4 +70,4 @@ internal static class InvalidOperationExceptionExtensions
{
throw new InvalidOperationException(message);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/NotSupportedExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/NotSupportedExceptionExtensions.cs
index 210c3f33..7196ebe5 100644
--- a/src/ComputeSharp.Core/Polyfills/NotSupportedExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/NotSupportedExceptionExtensions.cs
@@ -55,4 +55,4 @@ internal static class NotSupportedExceptionExtensions
{
throw new NotSupportedException();
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/ObjectDisposedExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/ObjectDisposedExceptionExtensions.cs
index 21335f80..fef6afd8 100644
--- a/src/ComputeSharp.Core/Polyfills/ObjectDisposedExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/ObjectDisposedExceptionExtensions.cs
@@ -57,4 +57,4 @@ internal static class ObjectDisposedExceptionExtensions
{
throw new ObjectDisposedException(targetObject.ToString());
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Polyfills/Win32ExceptionExtensions.cs b/src/ComputeSharp.Core/Polyfills/Win32ExceptionExtensions.cs
index f24bc389..635a5276 100644
--- a/src/ComputeSharp.Core/Polyfills/Win32ExceptionExtensions.cs
+++ b/src/ComputeSharp.Core/Polyfills/Win32ExceptionExtensions.cs
@@ -58,4 +58,4 @@ internal static class Win32ExceptionExtensions
{
throw new Win32Exception(hresult);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool2.tt b/src/ComputeSharp.Core/Primitives/Bool/Bool2.tt
index 801f6c2b..27534920 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool2.tt
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool2.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool2", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool3.tt b/src/ComputeSharp.Core/Primitives/Bool/Bool3.tt
index 6488af44..9d39b0e1 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool3.tt
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool3.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool3", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Bool/Bool4.tt b/src/ComputeSharp.Core/Primitives/Bool/Bool4.tt
index 0d039431..f8cdf504 100644
--- a/src/ComputeSharp.Core/Primitives/Bool/Bool4.tt
+++ b/src/ComputeSharp.Core/Primitives/Bool/Bool4.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Bool4", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double2.tt b/src/ComputeSharp.Core/Primitives/Double/Double2.tt
index bf4dba72..805bd009 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double2.tt
+++ b/src/ComputeSharp.Core/Primitives/Double/Double2.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double2", sizeof(double));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double3.tt b/src/ComputeSharp.Core/Primitives/Double/Double3.tt
index 5f03bf2e..e8e69ed9 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double3.tt
+++ b/src/ComputeSharp.Core/Primitives/Double/Double3.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double3", sizeof(double));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Double/Double4.tt b/src/ComputeSharp.Core/Primitives/Double/Double4.tt
index f953afbc..089339c8 100644
--- a/src/ComputeSharp.Core/Primitives/Double/Double4.tt
+++ b/src/ComputeSharp.Core/Primitives/Double/Double4.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Double4", sizeof(double));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float2.tt b/src/ComputeSharp.Core/Primitives/Float/Float2.tt
index d2da688a..7e667143 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float2.tt
+++ b/src/ComputeSharp.Core/Primitives/Float/Float2.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float2", sizeof(float));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float3.tt b/src/ComputeSharp.Core/Primitives/Float/Float3.tt
index 3b3852bc..9f16204d 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float3.tt
+++ b/src/ComputeSharp.Core/Primitives/Float/Float3.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float3", sizeof(float));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Float/Float4.tt b/src/ComputeSharp.Core/Primitives/Float/Float4.tt
index 7bcc833d..14bf6963 100644
--- a/src/ComputeSharp.Core/Primitives/Float/Float4.tt
+++ b/src/ComputeSharp.Core/Primitives/Float/Float4.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Float4", sizeof(float));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int2.tt b/src/ComputeSharp.Core/Primitives/Int/Int2.tt
index cbd0613b..e1661328 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int2.tt
+++ b/src/ComputeSharp.Core/Primitives/Int/Int2.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int2", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int3.tt b/src/ComputeSharp.Core/Primitives/Int/Int3.tt
index 78b16504..397e5f63 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int3.tt
+++ b/src/ComputeSharp.Core/Primitives/Int/Int3.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int3", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Int/Int4.tt b/src/ComputeSharp.Core/Primitives/Int/Int4.tt
index 655b092c..86734cb0 100644
--- a/src/ComputeSharp.Core/Primitives/Int/Int4.tt
+++ b/src/ComputeSharp.Core/Primitives/Int/Int4.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("Int4", sizeof(int));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/Internals/UndefinedData.cs b/src/ComputeSharp.Core/Primitives/Internals/UndefinedData.cs
index 1659d4db..6062536d 100644
--- a/src/ComputeSharp.Core/Primitives/Internals/UndefinedData.cs
+++ b/src/ComputeSharp.Core/Primitives/Internals/UndefinedData.cs
@@ -19,4 +19,4 @@ internal static class UndefinedData
#else
(void*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(UndefinedData), sizeof(Double4));
#endif
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt2.tt b/src/ComputeSharp.Core/Primitives/UInt/UInt2.tt
index 0b505c6e..a4aee355 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt2.tt
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt2.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt2", sizeof(uint));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt3.tt b/src/ComputeSharp.Core/Primitives/UInt/UInt3.tt
index eac79629..11a90359 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt3.tt
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt3.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt3", sizeof(uint));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.Core/Primitives/UInt/UInt4.tt b/src/ComputeSharp.Core/Primitives/UInt/UInt4.tt
index ccbf0ae8..f4a81548 100644
--- a/src/ComputeSharp.Core/Primitives/UInt/UInt4.tt
+++ b/src/ComputeSharp.Core/Primitives/UInt/UInt4.tt
@@ -1,4 +1,4 @@
-<#@include file="..\VectorType.ttinclude" #>
+<#@include file="..\VectorType.ttinclude" #>
<#
GenerateVectorProperties("UInt4", sizeof(uint));
#>
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs b/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
index 2b613055..9cf759fd 100644
--- a/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
+++ b/src/ComputeSharp.D2D1.CodeFixers/MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
@@ -45,4 +45,4 @@ public sealed class MissingPixelShaderDescriptorOnPixelShaderCodeFixer : Missing
leadingAttributeFullyQualifiedMetadataNames: D2DAttributeTypeNames)
{
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/Helpers/D2D1EffectMetadataParser.cs b/src/ComputeSharp.D2D1.SourceGenerators/Helpers/D2D1EffectMetadataParser.cs
index 018abee1..1b53addf 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/Helpers/D2D1EffectMetadataParser.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Helpers/D2D1EffectMetadataParser.cs
@@ -102,4 +102,4 @@ internal static class D2D1EffectMetadataParser
return false;
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.SourceGenerators/Polyfills/EncodingExtensions.cs b/src/ComputeSharp.D2D1.SourceGenerators/Polyfills/EncodingExtensions.cs
index 8c985e6d..825e8d36 100644
--- a/src/ComputeSharp.D2D1.SourceGenerators/Polyfills/EncodingExtensions.cs
+++ b/src/ComputeSharp.D2D1.SourceGenerators/Polyfills/EncodingExtensions.cs
@@ -20,4 +20,4 @@ internal static class EncodingExtensions
return encoding.GetBytes(charsPtr, chars.Length, bytesPtr, bytes.Length);
}
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
index 7e5a261d..9b2ba99e 100644
--- a/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
+++ b/src/ComputeSharp.D2D1.WinUI/ABI.Microsoft.Graphics.Canvas/Win2D.cs
@@ -89,4 +89,4 @@ internal static unsafe class Win2D
[NativeTypeName("Windows::Foundation::Rect const*")] Rect* sourceBounds,
uint valueCount,
Rect* valueElements);
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
index e92e16c4..83588f37 100644
--- a/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Helpers/RcwMarshaller.cs
@@ -58,4 +58,4 @@ internal static unsafe class RcwMarshaller
return unknownObject.CopyTo(nativeObject);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
index a024b3e4..6a81f448 100644
--- a/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
+++ b/src/ComputeSharp.D2D1.WinUI/Helpers/ResourceManager.cs
@@ -114,4 +114,4 @@ internal static unsafe class ResourceManager
*factoryNative = (ICanvasFactoryNative*)MarshalInterface.FromManaged(canvasDeviceActivationFactory);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs
index 48f5e411..e0f590c6 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.g.cs
@@ -19,6 +19,7 @@ unsafe partial struct PixelShaderEffect
{
return ((PixelShaderEffect*)effect)->SetResourceTextureManagerAtIndex(0, data, dataSize);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[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);
}
+
///
[UnmanagedCallersOnly]
public static HRESULT GetResourceTextureManager15Impl(IUnknown* effect, byte* data, uint dataSize, uint* actualSize)
diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt
index 26ca5dab..92694b23 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.tt
@@ -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("");
+ }
+
#>
///
[UnmanagedCallersOnly]
diff --git a/src/ComputeSharp.D3D12MemoryAllocator/D3D12MemoryAllocatorFactory.cs b/src/ComputeSharp.D3D12MemoryAllocator/D3D12MemoryAllocatorFactory.cs
index 57add46a..3ca5bbcd 100644
--- a/src/ComputeSharp.D3D12MemoryAllocator/D3D12MemoryAllocatorFactory.cs
+++ b/src/ComputeSharp.D3D12MemoryAllocator/D3D12MemoryAllocatorFactory.cs
@@ -67,4 +67,4 @@ public sealed unsafe class D3D12MemoryAllocatorFactory : ICustomQueryInterface
};
}
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslDefinitionsSyntaxProcessor.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslDefinitionsSyntaxProcessor.cs
index f1d10d04..78ae04e3 100644
--- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslDefinitionsSyntaxProcessor.cs
+++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslDefinitionsSyntaxProcessor.cs
@@ -293,4 +293,4 @@ internal static class HlslDefinitionsSyntaxProcessor
}
}
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslSourceSyntaxProcessor.cs b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslSourceSyntaxProcessor.cs
index b3657ac9..eab48fa4 100644
--- a/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslSourceSyntaxProcessor.cs
+++ b/src/ComputeSharp.SourceGeneration.Hlsl/SyntaxProcessors/HlslSourceSyntaxProcessor.cs
@@ -130,4 +130,4 @@ internal static class HlslSourceSyntaxProcessor
writer.WriteLine(skipIfPresent: true);
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp.SourceGeneration/Extensions/SymbolInfoExtensions.cs b/src/ComputeSharp.SourceGeneration/Extensions/SymbolInfoExtensions.cs
index 2317a5d1..cca8789b 100644
--- a/src/ComputeSharp.SourceGeneration/Extensions/SymbolInfoExtensions.cs
+++ b/src/ComputeSharp.SourceGeneration/Extensions/SymbolInfoExtensions.cs
@@ -41,4 +41,4 @@ internal static class SymbolInfoExtensions
return true;
}
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadOnlyResource.cs b/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadOnlyResource.cs
index 30bdb496..02f4aebb 100644
--- a/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadOnlyResource.cs
+++ b/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadOnlyResource.cs
@@ -22,4 +22,4 @@ internal unsafe interface ID3D12ReadOnlyResource
/// The value for the returned object.
/// The the underlying object.
ID3D12Resource* ValidateAndGetID3D12Resource(GraphicsDevice device, out ReferenceTracker.Lease lease);
-}
+}
\ No newline at end of file
diff --git a/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadWriteResource.cs b/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadWriteResource.cs
index 02c30dc2..6a6336be 100644
--- a/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadWriteResource.cs
+++ b/src/ComputeSharp/Graphics/Resources/Interfaces/Interop/ID3D12ReadWriteResource.cs
@@ -29,4 +29,4 @@ internal unsafe interface ID3D12ReadWriteResource : ID3D12ReadOnlyResource
ResourceState resourceState,
out ID3D12Resource* d3D12Resource,
out ReferenceTracker.Lease lease);
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
index ef4375c8..cc60934b 100644
--- a/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
+++ b/tests/ComputeSharp.D2D1.Tests.SourceGenerators/Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer.cs
@@ -358,4 +358,4 @@ public class Test_MissingPixelShaderDescriptorOnPixelShaderCodeFixer
await test.RunAsync();
}
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs
index 335c3778..eae68790 100644
--- a/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs
+++ b/tests/ComputeSharp.D2D1.WinUI.Tests/App.xaml.cs
@@ -22,4 +22,4 @@ public partial class App : Application
{
UnitTestClient.Run(Environment.CommandLine);
}
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs
index 30a4dba3..ed224f3e 100644
--- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs
+++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/CanvasEffectTests.cs
@@ -709,4 +709,4 @@ public partial class CanvasEffectTests
return default;
}
}
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs
index 830dfc69..7207cded 100644
--- a/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs
+++ b/tests/ComputeSharp.D2D1.WinUI.Tests/Tests/PixelShaderEffectTests.cs
@@ -517,4 +517,4 @@ public partial class PixelShaderEffectTests
return D2D.GetInput(0) + D2D.GetInput(1);
}
}
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpAnalyzerWithLanguageVersionTest{TAnalyzer}.cs b/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpAnalyzerWithLanguageVersionTest{TAnalyzer}.cs
index e8b2595c..58304f3b 100644
--- a/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpAnalyzerWithLanguageVersionTest{TAnalyzer}.cs
+++ b/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpAnalyzerWithLanguageVersionTest{TAnalyzer}.cs
@@ -60,4 +60,4 @@ internal sealed class CSharpAnalyzerWithLanguageVersionTest : CSharpA
return test.RunAsync(CancellationToken.None);
}
-}
+}
\ No newline at end of file
diff --git a/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpGeneratorTest{TGenerator}.cs b/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpGeneratorTest{TGenerator}.cs
index 7198457e..14bf09a3 100644
--- a/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpGeneratorTest{TGenerator}.cs
+++ b/tests/ComputeSharp.Tests.SourceGenerators/Helpers/CSharpGeneratorTest{TGenerator}.cs
@@ -110,4 +110,4 @@ internal static class CSharpGeneratorTest
// Run all source generators on the input source code
_ = driver.RunGeneratorsAndUpdateCompilation(originalCompilation, out compilation, out diagnostics);
}
-}
+}
\ No newline at end of file