diff --git a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs index 5c8031db..71086963 100644 --- a/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs +++ b/src/ComputeSharp.Dynamic/Attributes/__Internals/ShaderMethodSourceAttribute.HlslGeneration.cs @@ -17,6 +17,7 @@ partial class ShaderMethodSourceAttribute : Attribute { if (mapping.Add(constant.Key)) { + builder.Append('\n'); builder.Append("#define "); builder.Append(constant.Key); builder.Append(' '); diff --git a/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs b/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs index c44fb1c0..02a5da36 100644 --- a/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/EndToEndTests.cs @@ -15,7 +15,7 @@ namespace ComputeSharp.D2D1.Tests; public class EndToEndTests { [AssemblyInitialize] - public static void ConfigureImageSharp() + public static void ConfigureImageSharp(TestContext _) { Configuration.Default.PreferContiguousImageBuffers = true; } diff --git a/tests/ComputeSharp.Tests/ImagingTests.cs b/tests/ComputeSharp.Tests/ImagingTests.cs index 2ef5ba13..5b3ce1ab 100644 --- a/tests/ComputeSharp.Tests/ImagingTests.cs +++ b/tests/ComputeSharp.Tests/ImagingTests.cs @@ -20,7 +20,7 @@ namespace ComputeSharp.Tests; public class ImagingTests { [AssemblyInitialize] - public static void ConfigureImageSharp() + public static void ConfigureImageSharp(TestContext _) { Configuration.Default.PreferContiguousImageBuffers = true; } @@ -516,7 +516,7 @@ public class ImagingTests original.Save(expectedPath); - TolerantImageComparer.AssertEqual(expectedPath, actualPath, 0.00004037f); + TolerantImageComparer.AssertEqual(expectedPath, actualPath, 0.00004038f); } [CombinatorialTestMethod]