From 5fff1a2a2759526e53ad8a0e44e1a7e9710fbec4 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 18 Sep 2022 18:01:55 +0200 Subject: [PATCH] Remove unnecessary scoped modifiers --- .../Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs index b3e28d2c..51073911 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/Buffers/ArrayPoolBinaryWriterExtensions.cs @@ -23,7 +23,7 @@ internal static class ArrayPoolBinaryWriterExtensions /// The target instance to write data to. /// The value to write. /// This method will just blit the data of into the target buffer. - public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, scoped in T value) + public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, in T value) where T : unmanaged { Span span = writer.GetSpan(sizeof(T)); @@ -39,7 +39,7 @@ internal static class ArrayPoolBinaryWriterExtensions /// The type of value to write. /// The target instance to write data to. /// The value to write. - public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, scoped in T value) + public static unsafe void WriteRaw(this in ArrayPoolBufferWriter writer, in T value) where T : unmanaged { Span span = writer.GetSpan(1); @@ -55,7 +55,7 @@ internal static class ArrayPoolBinaryWriterExtensions /// The type of values in the target writer. /// The target instance to write data to. /// The data to write. - public static void WriteRaw(this in ArrayPoolBufferWriter writer, scoped ReadOnlySpan data) + public static void WriteRaw(this in ArrayPoolBufferWriter writer, ReadOnlySpan data) where T : unmanaged { Span span = writer.GetSpan(data.Length);