From 9048571616121d1234cc21eb5c21eb427042540d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 31 Jan 2021 16:38:47 +0100 Subject: [PATCH] Minor code tweaks --- src/ComputeSharp/Graphics/Interop/UniquePtr{T}.cs | 4 ++-- src/ComputeSharp/Shaders/ShaderRunner{T}.cs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ComputeSharp/Graphics/Interop/UniquePtr{T}.cs b/src/ComputeSharp/Graphics/Interop/UniquePtr{T}.cs index 69e0d3b4..eb4b81e8 100644 --- a/src/ComputeSharp/Graphics/Interop/UniquePtr{T}.cs +++ b/src/ComputeSharp/Graphics/Interop/UniquePtr{T}.cs @@ -11,8 +11,8 @@ namespace ComputeSharp.Graphics /// /// Must be either , , or . /// - /// While this type is not marked as so that it can also be used in fields, make sure to - /// keep the reference counts properly tracked if you do store instances on the heap. + /// This type is not marked as so that it can also be used in fields, so make sure to + /// avoid copying it and disposing it multiple times, as that would lead to a access violation exceptions. /// internal unsafe struct UniquePtr : IDisposable where T : unmanaged diff --git a/src/ComputeSharp/Shaders/ShaderRunner{T}.cs b/src/ComputeSharp/Shaders/ShaderRunner{T}.cs index ba045dce..eb03e3ff 100644 --- a/src/ComputeSharp/Shaders/ShaderRunner{T}.cs +++ b/src/ComputeSharp/Shaders/ShaderRunner{T}.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Runtime.CompilerServices; -using ComputeSharp.Core.Extensions; using ComputeSharp.Graphics.Commands; using ComputeSharp.Graphics.Extensions; using ComputeSharp.Shaders.Extensions;