diff --git a/src/ComputeSharp.Core/Extensions/ComPtrExtensions.cs b/src/ComputeSharp.Core/Extensions/ComPtrExtensions.cs index c426d3ed..fd41a85f 100644 --- a/src/ComputeSharp.Core/Extensions/ComPtrExtensions.cs +++ b/src/ComputeSharp.Core/Extensions/ComPtrExtensions.cs @@ -2,7 +2,7 @@ using System.Runtime.CompilerServices; using TerraFX.Interop; -namespace ComputeSharp +namespace ComputeSharp.Core.Extensions { /// /// Helper methods for working with the type. diff --git a/src/ComputeSharp.Core/Extensions/HResultExtensions.cs b/src/ComputeSharp.Core/Extensions/HResultExtensions.cs index 549fac1d..6909de09 100644 --- a/src/ComputeSharp.Core/Extensions/HResultExtensions.cs +++ b/src/ComputeSharp.Core/Extensions/HResultExtensions.cs @@ -4,7 +4,7 @@ using System.Runtime.CompilerServices; using ComputeSharp.Core.Helpers; using HRESULT = System.Int32; -namespace ComputeSharp.Graphics.Helpers +namespace ComputeSharp.Core.Extensions { /// /// Helper methods to efficiently throw exceptions. diff --git a/src/ComputeSharp.Graphics/Commands/CommandList.cs b/src/ComputeSharp.Graphics/Commands/CommandList.cs index 5a78a3af..4c621a4e 100644 --- a/src/ComputeSharp.Graphics/Commands/CommandList.cs +++ b/src/ComputeSharp.Graphics/Commands/CommandList.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Extensions; using TerraFX.Interop; using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE; diff --git a/src/ComputeSharp.Graphics/Commands/Interop/ID3D12CommandAllocatorPool.cs b/src/ComputeSharp.Graphics/Commands/Interop/ID3D12CommandAllocatorPool.cs index 6491839a..849bbe04 100644 --- a/src/ComputeSharp.Graphics/Commands/Interop/ID3D12CommandAllocatorPool.cs +++ b/src/ComputeSharp.Graphics/Commands/Interop/ID3D12CommandAllocatorPool.cs @@ -1,7 +1,7 @@ -using ComputeSharp.Graphics.Extensions; -using ComputeSharp.Graphics.Helpers; -using System; +using System; using System.Collections.Generic; +using ComputeSharp.Core.Extensions; +using ComputeSharp.Graphics.Extensions; using TerraFX.Interop; namespace ComputeSharp.Graphics.Commands diff --git a/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs b/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs index 99678bed..79a26748 100644 --- a/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs +++ b/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs @@ -1,7 +1,8 @@ using System; using System.Diagnostics.Contracts; +using ComputeSharp.Core.Extensions; +using ComputeSharp.Core.Helpers; using ComputeSharp.Graphics.Buffers.Enums; -using ComputeSharp.Graphics.Helpers; using TerraFX.Interop; using static TerraFX.Interop.D3D12_COMMAND_QUEUE_FLAGS; using static TerraFX.Interop.D3D12_COMMAND_QUEUE_PRIORITY; @@ -14,7 +15,6 @@ using static TerraFX.Interop.D3D12_HEAP_TYPE; using static TerraFX.Interop.D3D12_RESOURCE_FLAGS; using static TerraFX.Interop.D3D12_RESOURCE_STATES; using FX = TerraFX.Interop.Windows; -using ComputeSharp.Core.Helpers; namespace ComputeSharp.Graphics.Extensions { diff --git a/src/ComputeSharp.Graphics/Extensions/ID3D12ResourceExtensions.cs b/src/ComputeSharp.Graphics/Extensions/ID3D12ResourceExtensions.cs index ffdab9aa..6263df62 100644 --- a/src/ComputeSharp.Graphics/Extensions/ID3D12ResourceExtensions.cs +++ b/src/ComputeSharp.Graphics/Extensions/ID3D12ResourceExtensions.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Buffers.Interop; -using ComputeSharp.Graphics.Helpers; using TerraFX.Interop; namespace ComputeSharp.Graphics.Extensions diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index 7b10dee5..c162150c 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -1,9 +1,9 @@ -using ComputeSharp.Core.Helpers; +using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; +using ComputeSharp.Core.Helpers; using ComputeSharp.Core.Interop; using ComputeSharp.Graphics.Commands; using ComputeSharp.Graphics.Extensions; -using ComputeSharp.Graphics.Helpers; -using System.Runtime.CompilerServices; using TerraFX.Interop; using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE; using static TerraFX.Interop.D3D12_FEATURE; diff --git a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.Enumerator.cs b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.Enumerator.cs index d0b6ac4d..aa7b2817 100644 --- a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.Enumerator.cs +++ b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.Enumerator.cs @@ -2,6 +2,7 @@ using System; using System.Collections; using System.Collections.Generic; +using ComputeSharp.Core.Extensions; using TerraFX.Interop; using FX = TerraFX.Interop.Windows; using HRESULT = System.Int32; diff --git a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs index 4a219cd3..13adb844 100644 --- a/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs +++ b/src/ComputeSharp.Graphics/Helpers/DeviceHelper.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics; using System.Diagnostics.Contracts; +using ComputeSharp.Core.Extensions; using ComputeSharp.Core.Helpers; using TerraFX.Interop; using FX = TerraFX.Interop.Windows; diff --git a/src/ComputeSharp.Shaders/Extensions/ID3D12DeviceExtensions.cs b/src/ComputeSharp.Shaders/Extensions/ID3D12DeviceExtensions.cs index 596f1c3b..937ea9c9 100644 --- a/src/ComputeSharp.Shaders/Extensions/ID3D12DeviceExtensions.cs +++ b/src/ComputeSharp.Shaders/Extensions/ID3D12DeviceExtensions.cs @@ -1,5 +1,5 @@ -using ComputeSharp.Graphics.Helpers; -using System; +using System; +using ComputeSharp.Core.Extensions; using TerraFX.Interop; using static TerraFX.Interop.D3D12_PIPELINE_STATE_FLAGS; using FX = TerraFX.Interop.Windows; diff --git a/src/ComputeSharp.Shaders/ShaderRunner{T}.cs b/src/ComputeSharp.Shaders/ShaderRunner{T}.cs index 871a27cd..dc779697 100644 --- a/src/ComputeSharp.Shaders/ShaderRunner{T}.cs +++ b/src/ComputeSharp.Shaders/ShaderRunner{T}.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics; using ComputeSharp.Graphics.Commands; using ComputeSharp.Shaders.Extensions; diff --git a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs index ef67ed5a..3c3cdbaf 100644 --- a/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs +++ b/src/ComputeSharp.Shaders/Translation/ShaderCompiler.cs @@ -2,8 +2,8 @@ using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; +using ComputeSharp.Core.Extensions; using ComputeSharp.Exceptions; -using ComputeSharp.Graphics.Helpers; using TerraFX.Interop; using FX = TerraFX.Interop.Windows;