Fixed slowdown when getting data from buffers

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-31 11:18:57 +02:00
1 親 148bf60757
コミット c0a45971bd
2ファイル変更
+2 -2

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -24,7 +24,7 @@ namespace ComputeSharp.Graphics.Buffers.Abstract
/// <inheritdoc/>
public override void GetData(Span<T> span, int offset, int count)
{
using Buffer<T> transferBuffer = new Buffer<T>(GraphicsDevice, count, count * ElementSizeInBytes, BufferType.Transfer);
using Buffer<T> transferBuffer = new Buffer<T>(GraphicsDevice, count, count * ElementSizeInBytes, BufferType.ReadBack);
using CommandList copyCommandList = new CommandList(GraphicsDevice, CommandListType.Copy);
copyCommandList.CopyBufferRegion(this, offset * ElementSizeInBytes, transferBuffer, 0, count * ElementSizeInBytes);
+1 -1
ファイルの表示
@@ -21,7 +21,7 @@
ReadWrite,
/// <summary>
/// A readback buffer, used as temporary buffer to read data back from read write buffers, mapped to <see cref="Vortice.DirectX.Direct3D12.HeapType.Readback"/>
/// A readback buffer, used as temporary buffer to read data back from buffers in the default heap, mapped to <see cref="Vortice.DirectX.Direct3D12.HeapType.Readback"/>
/// </summary>
ReadBack,