diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj index 7cd14f1c..91b04b03 100644 --- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj +++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj @@ -9,9 +9,9 @@ - + - + @@ -21,7 +21,7 @@ - + diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj index dcbc7cad..4d720461 100644 --- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj +++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj @@ -12,7 +12,7 @@ - + diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor.Implementation.cs similarity index 100% rename from samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs rename to samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor.Implementation.cs diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor.Implementation.cs similarity index 100% rename from samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs rename to samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor.Implementation.cs diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj index c0c4200d..8e3a1c27 100644 --- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj +++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj @@ -11,7 +11,7 @@ - + diff --git a/tests/ComputeSharp.Tests/ComputeContextTests.cs b/tests/ComputeSharp.Tests/ComputeContextTests.cs index 4842b574..845114a4 100644 --- a/tests/ComputeSharp.Tests/ComputeContextTests.cs +++ b/tests/ComputeSharp.Tests/ComputeContextTests.cs @@ -999,7 +999,7 @@ public partial class ComputeContextTests string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png"); string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080.png"); - IImageInfo imageInfo = Image.Identify(originalPath); + ImageInfo imageInfo = Image.Identify(originalPath); using Image sampled = Image.Load(Path.Combine(assetsPath, sampledPath)); @@ -1051,7 +1051,7 @@ public partial class ComputeContextTests string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png"); string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080.png"); - IImageInfo imageInfo = Image.Identify(originalPath); + ImageInfo imageInfo = Image.Identify(originalPath); using Image sampled = Image.Load(Path.Combine(assetsPath, sampledPath)); @@ -1130,7 +1130,7 @@ public partial class ComputeContextTests string originalPath = Path.Combine(assetsPath, "CityWith1920x1280Resizing.png"); string sampledPath = Path.Combine(assetsPath, "CityAfter1024x1024SamplingFrom1920x1080AndDashing.png"); - IImageInfo imageInfo = Image.Identify(originalPath); + ImageInfo imageInfo = Image.Identify(originalPath); using Image sampled = Image.Load(Path.Combine(assetsPath, sampledPath)); diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 772d7f15..b90aaf82 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -15,7 +15,7 @@ - + @@ -40,9 +40,9 @@ - + - + diff --git a/tests/ComputeSharp.Tests/Helpers/TolerantImageComparer.cs b/tests/ComputeSharp.Tests/Helpers/TolerantImageComparer.cs index 078c4777..904a0997 100644 --- a/tests/ComputeSharp.Tests/Helpers/TolerantImageComparer.cs +++ b/tests/ComputeSharp.Tests/Helpers/TolerantImageComparer.cs @@ -39,9 +39,9 @@ internal static class TolerantImageComparer public static void AssertEqual(Image expected, Image actual, float threshold) where TPixel : unmanaged, IPixel { - if (expected.Size() != actual.Size()) + if (expected.Size != actual.Size) { - Assert.Fail($"The input images have different sizes: {expected.Size()} and {actual.Size()}"); + Assert.Fail($"The input images have different sizes: {expected.Size} and {actual.Size}"); } if (expected.Frames.Count != actual.Frames.Count || diff --git a/tests/ComputeSharp.Tests/ImagingTests.cs b/tests/ComputeSharp.Tests/ImagingTests.cs index 72a62e51..fdb2b9e6 100644 --- a/tests/ComputeSharp.Tests/ImagingTests.cs +++ b/tests/ComputeSharp.Tests/ImagingTests.cs @@ -62,7 +62,7 @@ public class ImagingTests { string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg"); - IImageInfo imageInfo = Image.Identify(path); + ImageInfo imageInfo = Image.Identify(path); using Texture2D texture = device.Get().AllocateTexture2D(textureType, imageInfo.Width, imageInfo.Height); using UploadTexture2D upload = device.Get().AllocateUploadTexture2D(imageInfo.Width, imageInfo.Height); @@ -102,7 +102,7 @@ public class ImagingTests { string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg"); - IImageInfo imageInfo = Image.Identify(path); + ImageInfo imageInfo = Image.Identify(path); using Texture2D texture = device.Get().AllocateTexture2D(textureType, imageInfo.Width, imageInfo.Height); using UploadTexture2D upload = device.Get().AllocateUploadTexture2D(imageInfo.Width, imageInfo.Height); @@ -144,7 +144,7 @@ public class ImagingTests { string path = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Imaging", "city.jpg"); - IImageInfo imageInfo = Image.Identify(path); + ImageInfo imageInfo = Image.Identify(path); using Texture2D texture = device.Get().AllocateTexture2D(textureType, imageInfo.Width, imageInfo.Height); using UploadTexture2D upload = device.Get().AllocateUploadTexture2D(imageInfo.Width, imageInfo.Height); diff --git a/tests/ComputeSharp.Tests/ShadersTests.cs b/tests/ComputeSharp.Tests/ShadersTests.cs index 4592bcf7..74cfdc28 100644 --- a/tests/ComputeSharp.Tests/ShadersTests.cs +++ b/tests/ComputeSharp.Tests/ShadersTests.cs @@ -161,7 +161,7 @@ public class ShadersTests string expectedPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Assets", $"{shaderType.Name}.png"); - IImageInfo imageInfo = Image.Identify(expectedPath); + ImageInfo imageInfo = Image.Identify(expectedPath); using Image image = new(imageInfo.Width, imageInfo.Height); @@ -237,7 +237,7 @@ public class ShadersTests string expectedPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "Assets", $"{shaderType.Name}.png"); - IImageInfo imageInfo = Image.Identify(expectedPath); + ImageInfo imageInfo = Image.Identify(expectedPath); using Image image = new(imageInfo.Width, imageInfo.Height);