diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
index 0c070ff3..41a706ae 100644
--- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
+++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net5.0-windows10.0.19041.0
diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
index 44109545..e2d3d73c 100644
--- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
+++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net5.0-windows10.0.19041.0
diff --git a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
index 430f758a..2f0877a8 100644
--- a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
+++ b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj
@@ -2,7 +2,7 @@
Exe
- netcoreapp3.1
+ net5.0-windows10.0.19041.0
diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj
index aa1d99a3..d0a626b4 100644
--- a/src/ComputeSharp/ComputeSharp.csproj
+++ b/src/ComputeSharp/ComputeSharp.csproj
@@ -1,15 +1,10 @@
- netstandard2.1
- 8.0
+ net5.0-windows10.0.19041.0
enable
-
-
-
-
diff --git a/src/ComputeSharp/Extensions/Windows.Foundation/PointExtensions.cs b/src/ComputeSharp/Extensions/Windows.Foundation/PointExtensions.cs
index 4c636790..f5be5e01 100644
--- a/src/ComputeSharp/Extensions/Windows.Foundation/PointExtensions.cs
+++ b/src/ComputeSharp/Extensions/Windows.Foundation/PointExtensions.cs
@@ -1,5 +1,6 @@
using System.Diagnostics.Contracts;
using System.Numerics;
+using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
@@ -14,6 +15,7 @@ namespace Windows.Foundation
/// The input to convert
/// A value representing the input
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 ToVector2(this in Point value) => new Vector2((float)value.X, (float)value.Y);
///
@@ -22,6 +24,7 @@ namespace Windows.Foundation
/// The input to convert
/// A value representing the input
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Point ToPoint(this in Vector2 value) => new Point(value.X, value.Y);
}
}
diff --git a/src/ComputeSharp/Extensions/Windows.Foundation/RectExtensions.cs b/src/ComputeSharp/Extensions/Windows.Foundation/RectExtensions.cs
index 55956a6e..6a46c4d0 100644
--- a/src/ComputeSharp/Extensions/Windows.Foundation/RectExtensions.cs
+++ b/src/ComputeSharp/Extensions/Windows.Foundation/RectExtensions.cs
@@ -1,5 +1,6 @@
using System.Diagnostics.Contracts;
using System.Numerics;
+using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
@@ -15,6 +16,7 @@ namespace Windows.Foundation
/// A value representing the input
/// The input is read in the following order: , , ,
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector4 ToVector2(this in Rect value) => new Vector4((float)value.Left, (float)value.Top, (float)value.Right, (float)value.Bottom);
///
@@ -24,6 +26,7 @@ namespace Windows.Foundation
/// A value representing the input
/// The input is assigned in the following order: , , ,
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Rect ToPoint(this in Vector4 value) => new Rect(value.X, value.Y, value.Z, value.W);
}
}
\ No newline at end of file
diff --git a/src/ComputeSharp/Extensions/Windows.Foundation/SizeExtensions.cs b/src/ComputeSharp/Extensions/Windows.Foundation/SizeExtensions.cs
index f8871206..360ef02c 100644
--- a/src/ComputeSharp/Extensions/Windows.Foundation/SizeExtensions.cs
+++ b/src/ComputeSharp/Extensions/Windows.Foundation/SizeExtensions.cs
@@ -1,5 +1,6 @@
using System.Diagnostics.Contracts;
using System.Numerics;
+using System.Runtime.CompilerServices;
namespace Windows.Foundation
{
@@ -15,6 +16,7 @@ namespace Windows.Foundation
/// A value representing the input
/// The input is read in the following order: ,
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Vector2 ToVector2(this in Size value) => new Vector2((float)value.Width, (float)value.Height);
///
@@ -24,6 +26,7 @@ namespace Windows.Foundation
/// A value representing the input
/// The input is assigned in the following order: ,
[Pure]
+ [MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Size ToPoint(this in Vector2 value) => new Size(value.X, value.Y);
}
}
\ No newline at end of file
diff --git a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
index 518343ba..72b5e1aa 100644
--- a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
+++ b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj
@@ -1,15 +1,14 @@
- netcoreapp3.1
-
+ net5.0-windows10.0.19041.0
false
-
-
-
+
+
+
diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
index 518343ba..72b5e1aa 100644
--- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
+++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj
@@ -1,15 +1,14 @@
- netcoreapp3.1
-
+ net5.0-windows10.0.19041.0
false
-
-
-
+
+
+