diff --git a/ComputeSharp.sln b/ComputeSharp.sln index 078cf036..81d2934d 100644 --- a/ComputeSharp.sln +++ b/ComputeSharp.sln @@ -486,7 +486,6 @@ Global src\ComputeSharp.Win32.D2D1\ComputeSharp.Win32.D2D1.projitems*{9da1da9f-f8b2-4b25-be80-c21f773029e3}*SharedItemsImports = 13 samples\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems*{9ea5ae9d-c39a-4f43-b03e-0a848ea2558a}*SharedItemsImports = 5 src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{a5997814-d8d2-4541-87ac-c3e53caa67c0}*SharedItemsImports = 13 - src\ComputeSharp.NetStandard\ComputeSharp.NetStandard.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration\ComputeSharp.SourceGeneration.projitems*{bfb003d1-788b-48de-8065-39479c162cb0}*SharedItemsImports = 5 samples\ComputeSharp.SwapChain.Shaders.Shared\ComputeSharp.SwapChain.Shaders.Shared.projitems*{c12d7ace-98ed-4813-8118-6667c34f484f}*SharedItemsImports = 5 src\ComputeSharp.SourceGeneration.Hlsl\ComputeSharp.SourceGeneration.Hlsl.projitems*{e44053bd-a761-47fb-aa78-087a599672ea}*SharedItemsImports = 5 diff --git a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj index 00a1b79d..9dadf433 100644 --- a/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj +++ b/src/ComputeSharp.Core.SourceGenerators/ComputeSharp.Core.SourceGenerators.csproj @@ -23,7 +23,4 @@ - - - diff --git a/src/ComputeSharp.D2D1/Extensions/RECTExtensions.cs b/src/ComputeSharp.D2D1/Extensions/RECTExtensions.cs index 890e181d..83c19302 100644 --- a/src/ComputeSharp.D2D1/Extensions/RECTExtensions.cs +++ b/src/ComputeSharp.D2D1/Extensions/RECTExtensions.cs @@ -1,11 +1,7 @@ +using System; using System.Drawing; using System.Runtime.CompilerServices; using TerraFX.Interop.Windows; -#if NET6_0_OR_GREATER -using Math = System.Math; -#else -using Math = ComputeSharp.NetStandard.Math; -#endif namespace ComputeSharp.D2D1.Extensions; diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs index c7a95502..e2c08b74 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriter.cs @@ -1,14 +1,9 @@ using System; using System.Buffers; using System.Diagnostics.CodeAnalysis; -#if NET6_0_OR_GREATER using System.Numerics; -#endif using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -#if !NET6_0_OR_GREATER -using BitOperations = ComputeSharp.NetStandard.BitOperations; -#endif namespace ComputeSharp.D2D1.Shaders.Interop.Buffers; diff --git a/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs b/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs index 340eb9b0..b575a2c9 100644 --- a/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs +++ b/src/ComputeSharp.Win32.D2D1/Windows/shared/uuids/Windows.Manual.cs @@ -6,9 +6,6 @@ using System; using System.ComponentModel; using System.Runtime.CompilerServices; -#if !NET6_0_OR_GREATER -using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers; -#endif namespace TerraFX.Interop.Windows; diff --git a/src/ComputeSharp.Win32.D3D12/Windows/shared/uuids/Windows.Manual.cs b/src/ComputeSharp.Win32.D3D12/Windows/shared/uuids/Windows.Manual.cs index 31d53d37..15045cca 100644 --- a/src/ComputeSharp.Win32.D3D12/Windows/shared/uuids/Windows.Manual.cs +++ b/src/ComputeSharp.Win32.D3D12/Windows/shared/uuids/Windows.Manual.cs @@ -6,7 +6,6 @@ using System; using System.ComponentModel; using System.Runtime.CompilerServices; -using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers; #pragma warning disable IDE1006 diff --git a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs index 6a245080..9406ae92 100644 --- a/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs +++ b/src/ComputeSharp/Graphics/Commands/Interop/ID3D12DescriptorHandleAllocator.cs @@ -3,9 +3,6 @@ using ComputeSharp.Graphics.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D3D12_DESCRIPTOR_HEAP_TYPE; -#if !NET6_0_OR_GREATER -using GC = ComputeSharp.NetStandard.GC; -#endif namespace ComputeSharp.Graphics.Commands.Interop; diff --git a/src/ComputeSharp/Graphics/Extensions/BufferExtensions.cs b/src/ComputeSharp/Graphics/Extensions/BufferExtensions.cs index 4f40f97f..095fa47b 100644 --- a/src/ComputeSharp/Graphics/Extensions/BufferExtensions.cs +++ b/src/ComputeSharp/Graphics/Extensions/BufferExtensions.cs @@ -1,9 +1,6 @@ using System; using System.Runtime.InteropServices; using ComputeSharp.Resources; -#if !NET6_0_OR_GREATER -using GC = ComputeSharp.NetStandard.GC; -#endif namespace ComputeSharp; diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs index 2f4de787..869d41eb 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs +++ b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.IBufferWriter.cs @@ -14,9 +14,6 @@ using static TerraFX.Interop.Windows.STATFLAG; using static TerraFX.Interop.Windows.STG; using static TerraFX.Interop.Windows.STGM; using static TerraFX.Interop.Windows.STGTY; -#if !NET6_0_OR_GREATER -using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers; -#endif namespace ComputeSharp.Graphics.Extensions; diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs index 9481099b..c374551a 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs +++ b/src/ComputeSharp/Graphics/Extensions/Interop/IWICStreamExtensions.Stream.cs @@ -14,9 +14,6 @@ using static TerraFX.Interop.Windows.STATFLAG; using static TerraFX.Interop.Windows.STG; using static TerraFX.Interop.Windows.STGM; using static TerraFX.Interop.Windows.STGTY; -#if !NET6_0_OR_GREATER -using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers; -#endif namespace ComputeSharp.Graphics.Extensions; diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs index 0c190ede..376a190d 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.ID3D12InfoQueue.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; @@ -7,11 +8,6 @@ using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D3D12_MESSAGE_ID; using static TerraFX.Interop.DirectX.D3D12_MESSAGE_SEVERITY; -#if NET6_0_OR_GREATER -using Enum = System.Enum; -#else -using Enum = ComputeSharp.NetStandard.Enum; -#endif namespace ComputeSharp.Graphics.Helpers; diff --git a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs index 4d8bf14d..befcc3c7 100644 --- a/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs +++ b/src/ComputeSharp/Graphics/Helpers/DeviceHelper.IDXGIFactory6.cs @@ -1,13 +1,9 @@ using System; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using ComputeSharp.Core.Extensions; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -#if NET6_0_OR_GREATER -using RuntimeHelpers = System.Runtime.CompilerServices.RuntimeHelpers; -#else -using RuntimeHelpers = ComputeSharp.NetStandard.RuntimeHelpers; -#endif #pragma warning disable CA1416 diff --git a/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs b/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs index ec13519f..8b038533 100644 --- a/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs +++ b/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs @@ -1,11 +1,7 @@ using System; +using System.IO; using System.Runtime.CompilerServices; using TerraFX.Interop.Windows; -#if NET6_0_OR_GREATER -using Path = System.IO.Path; -#else -using Path = ComputeSharp.NetStandard.Path; -#endif #pragma warning disable IDE0011 diff --git a/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs b/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs index 4583f59b..51a6e390 100644 --- a/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Abstract/Buffer{T}.cs @@ -2,6 +2,7 @@ using System; using System.Buffers; using System.Diagnostics.CodeAnalysis; using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; using ComputeSharp.Core.Helpers; using ComputeSharp.Graphics.Commands.Interop; using ComputeSharp.Graphics.Extensions; @@ -14,11 +15,6 @@ using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.D3D12_FEATURE; using static TerraFX.Interop.DirectX.DXGI_FORMAT; using ResourceType = ComputeSharp.Graphics.Resources.Enums.ResourceType; -#if NET6_0_OR_GREATER -using MemoryMarshal = System.Runtime.InteropServices.MemoryMarshal; -#else -using MemoryMarshal = ComputeSharp.NetStandard.MemoryMarshal; -#endif #pragma warning disable CA1063 diff --git a/src/ComputeSharp/Graphics/Resources/Debug/BufferDebugView{T}.cs b/src/ComputeSharp/Graphics/Resources/Debug/BufferDebugView{T}.cs index 1ca213a0..7d03d63a 100644 --- a/src/ComputeSharp/Graphics/Resources/Debug/BufferDebugView{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Debug/BufferDebugView{T}.cs @@ -1,9 +1,5 @@ +using System; using System.Diagnostics; -#if NET6_0_OR_GREATER -using GC = System.GC; -#else -using GC = ComputeSharp.NetStandard.GC; -#endif namespace ComputeSharp.Resources.Debug; diff --git a/src/ComputeSharp/Graphics/Resources/Debug/TransferBufferDebugView{T}.cs b/src/ComputeSharp/Graphics/Resources/Debug/TransferBufferDebugView{T}.cs index cee56bee..7cd6a601 100644 --- a/src/ComputeSharp/Graphics/Resources/Debug/TransferBufferDebugView{T}.cs +++ b/src/ComputeSharp/Graphics/Resources/Debug/TransferBufferDebugView{T}.cs @@ -1,9 +1,5 @@ +using System; using System.Diagnostics; -#if NET6_0_OR_GREATER -using GC = System.GC; -#else -using GC = ComputeSharp.NetStandard.GC; -#endif namespace ComputeSharp.Resources.Debug;