Added missing T[] overloads

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-23 14:03:40 +01:00
1 親 be91da6d05
コミット 66faae5b02
1ファイル変更
+14
+14
ファイルの表示
@@ -121,6 +121,20 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
return data;
}
/// <summary>
/// Reads the contents of the current <see cref="Buffer{T}"/> instance and writes them into a target array.
/// </summary>
/// <param name="destination">The input array to write data to.</param>
public void GetData(T[] destination) => GetData(destination.AsSpan(), 0, Length);
/// <summary>
/// Reads the contents of the specified range from the current <see cref="Buffer{T}"/> instance and writes them into a target array.
/// </summary>
/// <param name="destination">The input array to write data to.</param>
/// <param name="offset">The offset to start reading data from.</param>
/// <param name="count">The number of items to read.</param>
public void GetData(T[] destination, int offset, int count) => GetData(destination.AsSpan(), offset, count);
/// <summary>
/// Reads the contents of the current <see cref="Buffer{T}"/> instance and writes them into a target <see cref="Span{T}"/>.
/// </summary>