Code refactoring to CommandList APIs

このコミットが含まれているのは:
Sergio Pedri committed 2021-02-05 16:00:36 +01:00
1 親 0f6fb3f49e
コミット c58f1e13da
8ファイル変更
+82 -162

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

+1 -1
ファイルの表示
@@ -143,7 +143,7 @@ namespace ComputeSharp
// Directly copy the input buffer, if possible
using CommandList copyCommandList = new(GraphicsDevice, D3D12_COMMAND_LIST_TYPE_COPY);
copyCommandList.CopyBufferRegion(D3D12Resource, 0, source.D3D12Resource, 0,(ulong)SizeInBytes);
copyCommandList.D3D12GraphicsCommandList->CopyBufferRegion(D3D12Resource, 0, source.D3D12Resource, 0,(ulong)SizeInBytes);
copyCommandList.ExecuteAndWaitForCompletion();
}
else CopyFromWithCpuBuffer(source);