From 7c156a2dab2aa4a26eafb23c313cf7bea649e823 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 6 Jan 2021 00:05:36 +0100 Subject: [PATCH] Minor code tweaks --- .../Extensions/ID3D12DeviceExtensions.cs | 2 +- .../Extensions/ID3D12GraphicsCommandListExtensions.cs | 1 - src/ComputeSharp.Graphics/Resources/Abstract/Buffer{T}.cs | 2 +- src/ComputeSharp.Graphics/Resources/Abstract/Texture2D{T}.cs | 4 ++-- src/ComputeSharp.Graphics/Resources/Abstract/Texture3D{T}.cs | 4 ++-- .../ComputeSharp.SourceGenerators.csproj | 2 -- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs b/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs index ae2e91e9..6d177f7c 100644 --- a/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs +++ b/src/ComputeSharp.Graphics/Extensions/ID3D12DeviceExtensions.cs @@ -1,6 +1,7 @@ using System; using System.Diagnostics.Contracts; using ComputeSharp.Core.Extensions; +using ComputeSharp.Graphics.Resources.Enums; using Microsoft.Toolkit.Diagnostics; using TerraFX.Interop; using static TerraFX.Interop.D3D12_COMMAND_QUEUE_FLAGS; @@ -18,7 +19,6 @@ using static TerraFX.Interop.D3D12_RESOURCE_STATES; using static TerraFX.Interop.D3D12_SRV_DIMENSION; using static TerraFX.Interop.D3D12_UAV_DIMENSION; using FX = TerraFX.Interop.Windows; -using ComputeSharp.Graphics.Resources.Enums; namespace ComputeSharp.Graphics.Extensions { diff --git a/src/ComputeSharp.Graphics/Extensions/ID3D12GraphicsCommandListExtensions.cs b/src/ComputeSharp.Graphics/Extensions/ID3D12GraphicsCommandListExtensions.cs index a228f3ed..bdd20afa 100644 --- a/src/ComputeSharp.Graphics/Extensions/ID3D12GraphicsCommandListExtensions.cs +++ b/src/ComputeSharp.Graphics/Extensions/ID3D12GraphicsCommandListExtensions.cs @@ -17,7 +17,6 @@ namespace ComputeSharp.Graphics.Extensions /// The depthwise offset in the destination texture. /// The source (a buffer) to read from. /// The value describing . - public static void CopyTextureRegion( this ref ID3D12GraphicsCommandList d3D12GraphicsCommandList, ID3D12Resource* d3D12ResourceDestination, diff --git a/src/ComputeSharp.Graphics/Resources/Abstract/Buffer{T}.cs b/src/ComputeSharp.Graphics/Resources/Abstract/Buffer{T}.cs index d8434aa6..0bab9ab9 100644 --- a/src/ComputeSharp.Graphics/Resources/Abstract/Buffer{T}.cs +++ b/src/ComputeSharp.Graphics/Resources/Abstract/Buffer{T}.cs @@ -87,7 +87,7 @@ namespace ComputeSharp.Resources } /// - /// Gets the associated with the current instance. + /// Gets the associated with the current instance. /// public GraphicsDevice GraphicsDevice { get; } diff --git a/src/ComputeSharp.Graphics/Resources/Abstract/Texture2D{T}.cs b/src/ComputeSharp.Graphics/Resources/Abstract/Texture2D{T}.cs index 30e2a48f..89434f8f 100644 --- a/src/ComputeSharp.Graphics/Resources/Abstract/Texture2D{T}.cs +++ b/src/ComputeSharp.Graphics/Resources/Abstract/Texture2D{T}.cs @@ -53,7 +53,7 @@ namespace ComputeSharp.Resources /// /// Creates a new instance with the specified parameters. /// - /// The associated with the current instance. + /// The associated with the current instance. /// The height of the texture. /// The width of the texture. /// The resource type for the current texture. @@ -99,7 +99,7 @@ namespace ComputeSharp.Resources } /// - /// Gets the associated with the current instance. + /// Gets the associated with the current instance. /// public GraphicsDevice GraphicsDevice { get; } diff --git a/src/ComputeSharp.Graphics/Resources/Abstract/Texture3D{T}.cs b/src/ComputeSharp.Graphics/Resources/Abstract/Texture3D{T}.cs index 9d262a7c..da06d3fb 100644 --- a/src/ComputeSharp.Graphics/Resources/Abstract/Texture3D{T}.cs +++ b/src/ComputeSharp.Graphics/Resources/Abstract/Texture3D{T}.cs @@ -53,7 +53,7 @@ namespace ComputeSharp.Resources /// /// Creates a new instance with the specified parameters. /// - /// The associated with the current instance. + /// The associated with the current instance. /// The height of the texture. /// The width of the texture. /// The depth of the texture. @@ -103,7 +103,7 @@ namespace ComputeSharp.Resources } /// - /// Gets the associated with the current instance. + /// Gets the associated with the current instance. /// public GraphicsDevice GraphicsDevice { get; } diff --git a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj index 03fb352f..14f36b67 100644 --- a/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj +++ b/src/ComputeSharp.SourceGenerators/ComputeSharp.SourceGenerators.csproj @@ -2,8 +2,6 @@ netstandard2.0 - true - 9.0