Fixed bug in SetData API for the Buffer2<T> type

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-12 13:26:48 +02:00
1 親 0ce0c94611
コミット 9e253144b4
1ファイル変更
+1
+1
ファイルの表示
@@ -170,6 +170,7 @@ namespace ComputeSharp.Graphics.Buffers
using Buffer2<T> uploadBuffer = new Buffer2<T>(GraphicsDevice, Size, HeapType.Upload);
using CommandList copyCommandList = new CommandList(GraphicsDevice, CommandListType.Copy);
uploadBuffer.SetData(span);
copyCommandList.CopyBufferRegion(uploadBuffer, 0, this, 0, SizeInBytes);
copyCommandList.Flush(true);
}