Exemplo n.º 1
0
 /// <summary>
 /// Reads the contents of a <see cref="StructuredBuffer{T}"/> instance and writes them into a target <see cref="ReadBackBuffer{T}"/> instance.
 /// </summary>
 /// <typeparam name="T">The type of items stored on the buffer.</typeparam>
 /// <param name="buffer">The input <see cref="StructuredBuffer{T}"/> instance to read data from.</param>
 /// <param name="destination">The target <see cref="ReadBackBuffer{T}"/> instance to write data to.</param>
 public static void CopyTo <T>(this StructuredBuffer <T> buffer, ReadBackBuffer <T> destination)
     where T : unmanaged
 {
     buffer.CopyTo(destination, 0, buffer.Length, 0);
 }