Added new HlslBuffer<T>.SetData(T[]) overload

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-14 13:22:30 +02:00
1 親 9791c0d0a4
コミット 58da814547
1ファイル変更
+6
+6
ファイルの表示
@@ -39,6 +39,12 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
/// <param name="span">The input <see cref="Span{T}"/> to write data to</param>
public abstract void GetData(Span<T> span);
/// <summary>
/// Writes the contents of a given <typeparamref name="T"/> array to the current <see cref="HlslBuffer{T}"/> instance
/// </summary>
/// <param name="array">The input <typeparamref name="T"/> array to read data from</param>
public void SetData(T[] array) => SetData(array.AsSpan());
/// <summary>
/// Writes the contents of a given <see cref="Span{T}"/> to the current <see cref="HlslBuffer{T}"/> instance
/// </summary>