From 56dcbe201f3596b2153489acfdf0df9e558f2f87 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 30 Jun 2023 01:10:36 +0200 Subject: [PATCH] Remove D3D12MA dependency from ComputeSharp --- src/ComputeSharp.Core/ComputeSharp.Core.csproj | 1 + .../AllocatorExtensions.cs | 6 +----- .../ComputeSharp.D3D12MemoryAllocator.csproj | 4 ++++ src/ComputeSharp/ComputeSharp.csproj | 7 ++++--- 4 files changed, 10 insertions(+), 8 deletions(-) rename src/{ComputeSharp/Graphics/Extensions/Interop => ComputeSharp.D3D12MemoryAllocator}/AllocatorExtensions.cs (99%) diff --git a/src/ComputeSharp.Core/ComputeSharp.Core.csproj b/src/ComputeSharp.Core/ComputeSharp.Core.csproj index e9817bf9..af45fa55 100644 --- a/src/ComputeSharp.Core/ComputeSharp.Core.csproj +++ b/src/ComputeSharp.Core/ComputeSharp.Core.csproj @@ -5,6 +5,7 @@ + diff --git a/src/ComputeSharp/Graphics/Extensions/Interop/AllocatorExtensions.cs b/src/ComputeSharp.D3D12MemoryAllocator/AllocatorExtensions.cs similarity index 99% rename from src/ComputeSharp/Graphics/Extensions/Interop/AllocatorExtensions.cs rename to src/ComputeSharp.D3D12MemoryAllocator/AllocatorExtensions.cs index 973b978d..f45084df 100644 --- a/src/ComputeSharp/Graphics/Extensions/Interop/AllocatorExtensions.cs +++ b/src/ComputeSharp.D3D12MemoryAllocator/AllocatorExtensions.cs @@ -1,5 +1,3 @@ -#if NET6_0_OR_GREATER - using System; using ComputeSharp.Core.Extensions; using TerraFX.Interop.DirectX; @@ -248,6 +246,4 @@ internal static unsafe class AllocatorExtensions return allocation.Move(); } -} - -#endif \ No newline at end of file +} \ No newline at end of file diff --git a/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj b/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj index fe4fa3fa..a4655ba8 100644 --- a/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj +++ b/src/ComputeSharp.D3D12MemoryAllocator/ComputeSharp.D3D12MemoryAllocator.csproj @@ -7,4 +7,8 @@ + + + + diff --git a/src/ComputeSharp/ComputeSharp.csproj b/src/ComputeSharp/ComputeSharp.csproj index 0ad1927a..a5d08ede 100644 --- a/src/ComputeSharp/ComputeSharp.csproj +++ b/src/ComputeSharp/ComputeSharp.csproj @@ -5,6 +5,7 @@ + @@ -16,12 +17,12 @@ - + - + - +