From 10b96809e631375e686ae9c5d2488147d62866ef Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Fri, 13 Nov 2020 20:05:36 +0100 Subject: [PATCH] Removed external dependency and few extensions --- .../Buffers/Extensions/BufferExtensions.cs | 43 ------------------- .../ComputeSharp.Graphics.csproj | 1 - 2 files changed, 44 deletions(-) diff --git a/src/ComputeSharp.Graphics/Buffers/Extensions/BufferExtensions.cs b/src/ComputeSharp.Graphics/Buffers/Extensions/BufferExtensions.cs index e2ab354b..2a035738 100644 --- a/src/ComputeSharp.Graphics/Buffers/Extensions/BufferExtensions.cs +++ b/src/ComputeSharp.Graphics/Buffers/Extensions/BufferExtensions.cs @@ -3,7 +3,6 @@ using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; using ComputeSharp.Graphics; using ComputeSharp.Graphics.Buffers.Abstract; -using Microsoft.Toolkit.HighPerformance.Extensions; namespace ComputeSharp { @@ -26,20 +25,6 @@ namespace ComputeSharp return device.AllocateConstantBuffer(array.AsSpan()); } - /// - /// Allocates a new constant buffer with the specified parameters - /// - /// The type of items to store in the buffer - /// The instance to use to allocate the buffer - /// The input 2D array with the data to copy on the allocated buffer - /// A constant instance with the contents of the input 2D array - [Pure] - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ConstantBuffer AllocateConstantBuffer(this GraphicsDevice device, T[,] array) where T : unmanaged - { - return device.AllocateConstantBuffer(array.AsSpan()); - } - /// /// Allocates a new constant buffer with the specified parameters /// @@ -102,20 +87,6 @@ namespace ComputeSharp return device.AllocateReadOnlyBuffer(array.AsSpan()); } - /// - /// Allocates a new readonly buffer with the specified parameters - /// - /// The type of items to store in the buffer - /// The instance to use to allocate the buffer - /// The input 2D array with the data to copy on the allocated buffer - /// A read write instance with the contents of the input 2D array - [Pure] - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ReadOnlyBuffer AllocateReadOnlyBuffer(this GraphicsDevice device, T[,] array) where T : unmanaged - { - return device.AllocateReadOnlyBuffer(array.AsSpan()); - } - /// /// Allocates a new readonly buffer with the specified parameters /// @@ -178,20 +149,6 @@ namespace ComputeSharp return device.AllocateReadWriteBuffer(array.AsSpan()); } - /// - /// Allocates a new read write buffer with the specified parameters - /// - /// The type of items to store in the buffer - /// The instance to use to allocate the buffer - /// The input 2D array with the data to copy on the allocated buffer - /// A read write instance with the contents of the input 2D array - [Pure] - [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static ReadWriteBuffer AllocateReadWriteBuffer(this GraphicsDevice device, T[,] array) where T : unmanaged - { - return device.AllocateReadWriteBuffer(array.AsSpan()); - } - /// /// Allocates a new read write buffer with the specified parameters /// diff --git a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj index 631994c6..46677c52 100644 --- a/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj +++ b/src/ComputeSharp.Graphics/ComputeSharp.Graphics.csproj @@ -8,7 +8,6 @@ -