diff --git a/Directory.Build.props b/Directory.Build.props index 71e2d6cb..7169705b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ true - 9.0 + 10.0 enable true Sergio Pedri diff --git a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj index f156689e..59feb943 100644 --- a/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj +++ b/samples/ComputeSharp.Benchmark/ComputeSharp.Benchmark.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj index 219b4777..392b994f 100644 --- a/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj +++ b/samples/ComputeSharp.ImageProcessing/ComputeSharp.ImageProcessing.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj index ab7cef29..491392da 100644 --- a/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj +++ b/samples/ComputeSharp.Sample.FSharp.Shaders/ComputeSharp.Sample.FSharp.Shaders.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 diff --git a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj index 693c0aef..3a2ea2aa 100644 --- a/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj +++ b/samples/ComputeSharp.Sample.FSharp/ComputeSharp.Sample.FSharp.fsproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 5.0 diff --git a/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj b/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj index bdf283bf..8a48f676 100644 --- a/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj +++ b/samples/ComputeSharp.Sample.NuGet/ComputeSharp.Sample.NuGet.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj index 7c96952c..54c7d518 100644 --- a/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj +++ b/samples/ComputeSharp.Sample/ComputeSharp.Sample.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj index 248e0cad..a35947be 100644 --- a/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj +++ b/samples/ComputeSharp.SwapChain/ComputeSharp.SwapChain.csproj @@ -2,7 +2,7 @@ Exe - net5.0 + net6.0 diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index f1c8ed33..8edf4cda 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 bin\Release ComputeSharp.xml ComputeSharp diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs index 8b604244..da9d8886 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool2.g.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs index a61f2e22..a7fa2070 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool3.g.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs index f8329afa..8c4624f8 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/Bool4.g.cs @@ -1,7 +1,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs index 47bead26..6c5668b4 100644 --- a/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Bool/BoolMxN.g.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs index 3019afef..1c7fdde0 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double2.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs index da865f3c..b74498fc 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double3.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs b/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs index 02f44345..3d5acbac 100644 --- a/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/Double4.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs index 4a422835..137ca790 100644 --- a/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Double/DoubleMxN.g.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs index 9ed38330..7eec5117 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float2.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs index 43ff740c..e3ce0105 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float3.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs b/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs index 4055e29f..a6a59cef 100644 --- a/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/Float4.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs index aa97b306..3b03b72b 100644 --- a/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Float/FloatMxN.g.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs index b20e3213..94b21a98 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int2.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs index 3d2c18ea..c1f7e5bc 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int3.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs b/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs index 2f898b7f..0a18d1b4 100644 --- a/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/Int4.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs index 67f771a6..3b765b73 100644 --- a/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/Int/IntMxN.g.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude index 4ab82478..389057a4 100644 --- a/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude +++ b/src/ComputeSharp/Core/Primitives/MatrixType.ttinclude @@ -12,7 +12,7 @@ void GenerateAllMatrixProperties(string typeName, int elementSize) #> using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs index 301b1375..f37795b5 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt2.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs index 6c6f8418..353523dd 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt3.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs index 6c7126dc..269cf7ec 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UInt4.g.cs @@ -3,7 +3,7 @@ using System.Globalization; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs index 0dae3973..2831fabf 100644 --- a/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs +++ b/src/ComputeSharp/Core/Primitives/UInt/UIntMxN.g.cs @@ -1,6 +1,6 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude index 7cc37928..3514c799 100644 --- a/src/ComputeSharp/Core/Primitives/VectorType.ttinclude +++ b/src/ComputeSharp/Core/Primitives/VectorType.ttinclude @@ -61,7 +61,7 @@ void GenerateVectorProperties(string typeName, int elementSize) using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Text; -#if !NET5_0 +#if !NET6_0 using RuntimeHelpers = ComputeSharp.SourceGenerators.Helpers.RuntimeHelpers; using MemoryMarshal = ComputeSharp.SourceGenerators.Helpers.MemoryMarshal; #endif diff --git a/src/ComputeSharp/Graphics/Exceptions/UnsupportedTextureTypeException.cs b/src/ComputeSharp/Graphics/Exceptions/UnsupportedTextureTypeException.cs index d2dbc529..3c9a7d96 100644 --- a/src/ComputeSharp/Graphics/Exceptions/UnsupportedTextureTypeException.cs +++ b/src/ComputeSharp/Graphics/Exceptions/UnsupportedTextureTypeException.cs @@ -41,7 +41,6 @@ namespace ComputeSharp.Exceptions }); builder.Append("As a possible workaround on older devices, consider using a texture type of lower rank, or a linear buffer."); - builder.ToString(); return new(builder.ToString()); } diff --git a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj index db9c69bf..bd156989 100644 --- a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj +++ b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 false diff --git a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj index b1723dad..d6a6c85d 100644 --- a/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj +++ b/tests/ComputeSharp.Tests.NativeLibrariesResolver/ComputeSharp.Tests.NativeLibrariesResolver.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 false diff --git a/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj b/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj index 162e872f..b896c7ef 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj +++ b/tests/ComputeSharp.Tests.SourceGenerators/ComputeSharp.Tests.SourceGenerators.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 false diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index 5393f89b..63bc4f2d 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -1,7 +1,7 @@  - net5.0 + net6.0 false